From 0f40c3e225cc806c9b54b0fd1e71441cd8bfd666 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Thu, 9 Jan 2025 21:35:31 +0100 Subject: [PATCH] add home link --- covas_mobile/lib/classes/MyDrawer.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/covas_mobile/lib/classes/MyDrawer.dart b/covas_mobile/lib/classes/MyDrawer.dart index 79c18dd..f76fb68 100644 --- a/covas_mobile/lib/classes/MyDrawer.dart +++ b/covas_mobile/lib/classes/MyDrawer.dart @@ -3,6 +3,7 @@ import 'package:shared_preferences/shared_preferences.dart'; import 'package:http/http.dart' as http; import 'dart:io'; import '../pages/EditProfile.dart'; +import '../pages/ListItemMenu.dart'; import 'alert.dart'; import '../variable/globals.dart' as globals; @@ -94,7 +95,10 @@ class MyDrawer extends StatelessWidget with ShowAlertDialog { leading: Icon(Icons.home), title: Text('Home'), onTap: () { - Navigator.pop(context); // Close the drawer + Navigator.pushReplacement( + context, MaterialPageRoute(builder: (_) => ListItemMenu())); + + /// Close the drawer }, ), ListTile(