i use the following code to redirect between screens.
Navigator.push(
context,
PageRouteBuilder(
pageBuilder: (context, animation, animation2) => Directionality(
textDirection: TextDirection.rtl,
child: screen,
),
));
now i want it so when the user presses back, the previous screen is displayed and initstate
recalled.(in initstate
of previous screen i get data from server).