update
This commit is contained in:
@ -8,23 +8,62 @@ class DrawerPage extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Drawer(
|
||||
// Add a ListView to the drawer. This ensures the user can scroll
|
||||
// through the options in the drawer if there isn't enough vertical
|
||||
// space to fit everything.
|
||||
child: ListView.builder(
|
||||
itemCount: 10,
|
||||
itemBuilder: (context, i){
|
||||
return Obx(() =>
|
||||
CheckboxListTile(
|
||||
value: true,
|
||||
title: Text("Title"),
|
||||
onChanged: (val){
|
||||
}
|
||||
return SafeArea(
|
||||
child: Drawer(
|
||||
// Add a ListView to the drawer. This ensures the user can scroll
|
||||
// through the options in the drawer if there isn't enough vertical
|
||||
// space to fit everything.
|
||||
child: Container(
|
||||
child: Column(
|
||||
children: [
|
||||
Container(
|
||||
height: 100,
|
||||
color: Colors.amber,
|
||||
),
|
||||
ListTile(
|
||||
leading: Icon(Icons.login),
|
||||
title: Text("login".tr),
|
||||
onTap: (){},
|
||||
),
|
||||
ListTile(
|
||||
leading: Icon(Icons.password),
|
||||
title: Text("change_password".tr),
|
||||
onTap: (){},
|
||||
),
|
||||
ListTile(
|
||||
leading: Icon(Icons.person),
|
||||
title: Text("profile".tr),
|
||||
onTap: (){},
|
||||
),
|
||||
ListTile(
|
||||
leading: Icon(Icons.route),
|
||||
title: Text("recommended_route".tr),
|
||||
onTap: (){},
|
||||
),
|
||||
ListTile(
|
||||
leading: Icon(Icons.favorite_rounded),
|
||||
title: Text("point_rank".tr),
|
||||
onTap: (){},
|
||||
),
|
||||
ListTile(
|
||||
leading: Icon(Icons.featured_video),
|
||||
title: Text("game_rank".tr),
|
||||
onTap: (){},
|
||||
),
|
||||
ListTile(
|
||||
leading: Icon(Icons.router),
|
||||
title: Text("my_route".tr),
|
||||
onTap: (){},
|
||||
),
|
||||
ListTile(
|
||||
leading: Icon(Icons.history_sharp),
|
||||
title: Text("visit_history".tr),
|
||||
onTap: (){},
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
},
|
||||
)
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user