Navigator.push is not working() When I click on it nothing happends, no error, no change page, nothing...
ListTile(
leading: const Icon(CupertinoIcons.pencil),
title: const Text('Edit Profile'),
onTap: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => EditProfilePage(
uid: userData['uid'])));
Navigator.pop(context);
},
),
Remove Navigator.pop(context);
Explantation: You're popping the page immediately after pushing to it that's why it was behaving as if you weren't pushing at all.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With