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.