I used Navigator.push up to 6 screens to get to the payment page. After Payment, I want to push to the \"Payment Successful\" page then remove all the previous
Navigator.push
I would Suggest use WillPopScope in your Payment successful page and onWillPop method write following snippet of code:
return WillPopScope( onWillPop: (){ Navigator.of(context) .pushNamedAndRemoveUntil('/Home', (Route route) => false); }, child: Scaffold() };