Update transaction button route
This commit is contained in:
parent
f3bea2db3c
commit
4f0a5d89a7
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:nekoya_flutter/screens/transactions.dart';
|
||||
|
||||
import 'package:nekoya_flutter/components/menu.dart';
|
||||
|
||||
class PaymentBody extends StatefulWidget {
|
||||
const PaymentBody({Key? key}) : super(key: key);
|
||||
|
@ -130,8 +131,7 @@ class _PaymentBodyState extends State<PaymentBody> {
|
|||
borderRadius: BorderRadius.circular(18.0),
|
||||
side: const BorderSide(color: Colors.red)))),
|
||||
onPressed: () {
|
||||
Navigator.push(context,
|
||||
MaterialPageRoute(builder: (context) => const Transactions()));
|
||||
Navigator.of(context).pushReplacement(MaterialPageRoute(builder: (context) => const Menu(initialScreen: 4)));
|
||||
},
|
||||
child: const Text(
|
||||
'Transaction',
|
||||
|
|
Loading…
Reference in a new issue