Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Flutter: Navigator.push inside listTile is not working

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);
         },
       ),

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

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.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading