From 9f1f6ad0fff9527c597b85ea18d590ec1b0d2520 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maty=C3=A1=C5=A1=20Caras?= Date: Mon, 3 Apr 2023 15:47:53 +0200 Subject: [PATCH] fix: add about to drawer --- lib/util/drawer.dart | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lib/util/drawer.dart b/lib/util/drawer.dart index a9f7fcd..aec9494 100644 --- a/lib/util/drawer.dart +++ b/lib/util/drawer.dart @@ -62,6 +62,22 @@ Drawer genDrawer(int page, BuildContext context) => Drawer( ), ), ), + ListTile( + selected: page == 3, + title: const Text("About"), + leading: const Icon(Icons.info_outline), + onTap: () => page == 3 + ? Navigator.of(context).pop() + : Navigator.of(context).push( + MaterialPageRoute( + builder: (_) => const LicensePage( + applicationName: "Voyage Handbook", + applicationLegalese: + "Copyright ©️ 2023 Matyáš Caras,\nReleased under the GNU GPL version 3", + ), + ), + ), + ), ], ), );