How could I make the name() function run whenever the Page1 page appeared?
name()
Page1
In the code below before going to Page2 I execute t
Page2
You can override the back button on the second screen. And instead of system closing, do
`WillPopScope( onWillPop: () { print('back pressed'); Navigator.pop(context, "From BackButton"); return true; }, child: Scaffold(...)`