add home link

This commit is contained in:
Valentin CZERYBA 2025-01-09 21:35:31 +01:00
parent 30b9be35ef
commit 0f40c3e225

View File

@ -3,6 +3,7 @@ import 'package:shared_preferences/shared_preferences.dart';
import 'package:http/http.dart' as http; import 'package:http/http.dart' as http;
import 'dart:io'; import 'dart:io';
import '../pages/EditProfile.dart'; import '../pages/EditProfile.dart';
import '../pages/ListItemMenu.dart';
import 'alert.dart'; import 'alert.dart';
import '../variable/globals.dart' as globals; import '../variable/globals.dart' as globals;
@ -94,7 +95,10 @@ class MyDrawer extends StatelessWidget with ShowAlertDialog {
leading: Icon(Icons.home), leading: Icon(Icons.home),
title: Text('Home'), title: Text('Home'),
onTap: () { onTap: () {
Navigator.pop(context); // Close the drawer Navigator.pushReplacement(
context, MaterialPageRoute(builder: (_) => ListItemMenu()));
/// Close the drawer
}, },
), ),
ListTile( ListTile(