1.TabBar 与 TabBarView 实现左右滑动切换页面
2.PageView 实现视频列表上下整屏切换
3.VideoPlayer 实现视频播放
4.ModelBottomSheet 实现底部弹框效果
5.GridView 实现分享列表排列
6.ListView 实现评论列表排列
7.线性布局 Row Column 帧布局 Stack 综合使用
2.PageView 实现视频列表上下整屏切换
import 'package:flutter/material.dart';
class DouPage extends StatefulWidget {
const DouPage({Key? key}) : super(key: key);
@override
_DouPageState createState() => _DouPageState();
}
class _DouPageState extends State with SingleTickerProviderStateMixin {
List<String> tabTextList = ["关注","推荐"];
List<Tab> tabWidgetList = [];
TabController? tabController;
List<String> videoList = [];
@override
void initState() {