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),
side: const BorderSide(color: Color(0xff8B0000))))),
onPressed: () {
Navigator.of(context).pushReplacement(MaterialPageRoute(
builder: (context) => const Menu(initialScreen: 4)));
Navigator.pushReplacementNamed(context, '');
},
child: const Text(
'Transaction',