, 为其赋值一个 Drawer 组件 ;
Drawer 组件就是侧拉菜单 , 该组件的 child 设置一个 ListView 组件 , 在列表中设置 DrawerHeader , ListTile...: Drawer(
child: ListView(
children: datas.map((TabData data) {
/// 单个按钮条目
return ListTile...Navigator.pop(context);
},
);
}).toList(),
),
),
二、PageView 组件
----
PageView 组件最重要的两个字段...,
const TabData(index: 9, title: '学位', icon: Icons.school),
];
/// 通过 TabBar 导航栏切换展示的主要内容
/// 用于在.../// 卡片中的元素居中显示
child: Center(
/// 垂直方向的线性布局
child: Column(
/// 在主轴