Fix payment routing

This commit is contained in:
Moe Poi ~ 2022-05-21 17:22:27 +07:00
parent 8191e166e5
commit ec56ad1d95

View file

@ -205,8 +205,7 @@ class _PaymentBodyState extends State<PaymentBody> {
borderRadius: BorderRadius.circular(18.0), borderRadius: BorderRadius.circular(18.0),
side: const BorderSide(color: Color(0xff8B0000))))), side: const BorderSide(color: Color(0xff8B0000))))),
onPressed: () { onPressed: () {
Navigator.of(context).pushReplacement(MaterialPageRoute( Navigator.pushReplacementNamed(context, '');
builder: (context) => const Menu(initialScreen: 4)));
}, },
child: const Text( child: const Text(
'Transaction', 'Transaction',