mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-06-09 07:18:54 +08:00
Add settings to side menu
This commit is contained in:
@@ -37,8 +37,7 @@ class HomePage extends HookWidget {
|
||||
),
|
||||
drawer: Drawer(
|
||||
child: ListView.builder(
|
||||
padding: EdgeInsets.zero,
|
||||
itemCount: 2,
|
||||
itemCount: 3,
|
||||
itemBuilder: (context, i) {
|
||||
if (i == 0) {
|
||||
return Row(
|
||||
@@ -60,6 +59,16 @@ class HomePage extends HookWidget {
|
||||
},
|
||||
);
|
||||
}
|
||||
if (i == 2) {
|
||||
return ListTile(
|
||||
leading: const Icon(Icons.settings),
|
||||
title: Text(AppLocalizations.of(context)!.settings),
|
||||
onTap: () {
|
||||
Scaffold.of(context).closeDrawer();
|
||||
context.push("/settings");
|
||||
},
|
||||
);
|
||||
}
|
||||
return Container();
|
||||
})),
|
||||
body: Center(
|
||||
|
||||
Reference in New Issue
Block a user