add home link
This commit is contained in:
parent
30b9be35ef
commit
0f40c3e225
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user