this button is linked to the previous buttons for flutter

it depends on the way how you opened the page;

open new screen:

// Within the First Page widget

  Navigator.push(
    context,
    MaterialPageRoute(builder: (context) => SecondPage()),
  );

now you can return to the first page using Navigator.pop() like that :

// Within the Second Page widget

  Navigator.pop(context);

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top