From ec56ad1d95ac62f8fefb6eeb31022103aed23781 Mon Sep 17 00:00:00 2001 From: Moe Date: Sat, 21 May 2022 17:22:27 +0700 Subject: [PATCH] Fix payment routing --- lib/components/payment_body.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/components/payment_body.dart b/lib/components/payment_body.dart index 4ddcdff..be78336 100644 --- a/lib/components/payment_body.dart +++ b/lib/components/payment_body.dart @@ -205,8 +205,7 @@ class _PaymentBodyState extends State { 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',