diff --git a/covas_mobile/lib/classes/MyDrawer.dart b/covas_mobile/lib/classes/MyDrawer.dart index 13e2925..79c18dd 100644 --- a/covas_mobile/lib/classes/MyDrawer.dart +++ b/covas_mobile/lib/classes/MyDrawer.dart @@ -2,7 +2,7 @@ import 'package:flutter/material.dart'; import 'package:shared_preferences/shared_preferences.dart'; import 'package:http/http.dart' as http; import 'dart:io'; - +import '../pages/EditProfile.dart'; import 'alert.dart'; import '../variable/globals.dart' as globals; @@ -108,7 +108,10 @@ class MyDrawer extends StatelessWidget with ShowAlertDialog { leading: Icon(Icons.account_circle), title: Text('Update profile'), onTap: () { - Navigator.pop(context); // Close the drawer + Navigator.pushReplacement( + context, + MaterialPageRoute( + builder: (_) => EditProfile())); // Close the drawer }, ), ListTile(