cheque-management
This commit is contained in:
parent
98f2270614
commit
d67808e07f
@ -87,7 +87,7 @@ class CardManagementTile extends StatelessWidget {
|
|||||||
return ListTile(
|
return ListTile(
|
||||||
leading: Icon(icon),
|
leading: Icon(icon),
|
||||||
title: Text(label),
|
title: Text(label),
|
||||||
trailing: const Icon(Symbols.arrow_right, size: 16),
|
trailing: const Icon(Symbols.arrow_right, size: 20),
|
||||||
onTap: onTap,
|
onTap: onTap,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
124
lib/features/cheque/screens/cheque_management_screen.dart
Normal file
124
lib/features/cheque/screens/cheque_management_screen.dart
Normal file
@ -0,0 +1,124 @@
|
|||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:intl/intl.dart';
|
||||||
|
import 'package:material_symbols_icons/material_symbols_icons.dart';
|
||||||
|
|
||||||
|
class ChequeManagementScreen extends StatefulWidget {
|
||||||
|
const ChequeManagementScreen({super.key});
|
||||||
|
|
||||||
|
@override
|
||||||
|
State<ChequeManagementScreen> createState() => _ChequeManagementScreen();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _ChequeManagementScreen extends State<ChequeManagementScreen>{
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Scaffold(
|
||||||
|
appBar: AppBar(
|
||||||
|
leading: IconButton(icon: const Icon(Symbols.arrow_back_ios_new),
|
||||||
|
onPressed: () {
|
||||||
|
Navigator.pop(context);
|
||||||
|
},),
|
||||||
|
title: const Text('Cheque Management', style: TextStyle(color: Colors.black,
|
||||||
|
fontWeight: FontWeight.w500),),
|
||||||
|
centerTitle: false,
|
||||||
|
actions: const [
|
||||||
|
Padding(
|
||||||
|
padding: EdgeInsets.only(right: 10.0),
|
||||||
|
child: CircleAvatar(
|
||||||
|
backgroundImage: AssetImage('assets/images/avatar.jpg'), // Replace with your image
|
||||||
|
radius: 20,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
|
||||||
|
body: ListView(
|
||||||
|
children: [
|
||||||
|
const SizedBox(height: 15),
|
||||||
|
ChequeManagementTile(
|
||||||
|
icon: Symbols.add,
|
||||||
|
label: 'Request Checkbook',
|
||||||
|
onTap: () {
|
||||||
|
|
||||||
|
},
|
||||||
|
),
|
||||||
|
|
||||||
|
const Divider(height: 1,),
|
||||||
|
|
||||||
|
ChequeManagementTile(
|
||||||
|
icon: Symbols.data_alert,
|
||||||
|
label: 'Enquiry',
|
||||||
|
onTap: () {
|
||||||
|
// Navigator.push(context, MaterialPageRoute(
|
||||||
|
// builder: (context) => const BlockCardScreen()));
|
||||||
|
},
|
||||||
|
),
|
||||||
|
|
||||||
|
const Divider(height: 1,),
|
||||||
|
|
||||||
|
ChequeManagementTile(
|
||||||
|
icon: Symbols.approval_delegation,
|
||||||
|
label: 'Cheque Deposit',
|
||||||
|
onTap: () {
|
||||||
|
},
|
||||||
|
),
|
||||||
|
|
||||||
|
const Divider(height: 1,),
|
||||||
|
|
||||||
|
ChequeManagementTile(
|
||||||
|
icon: Symbols.front_hand,
|
||||||
|
label: 'Stop Cheque',
|
||||||
|
onTap: () {
|
||||||
|
},
|
||||||
|
),
|
||||||
|
|
||||||
|
const Divider(height: 1,),
|
||||||
|
|
||||||
|
ChequeManagementTile(
|
||||||
|
icon: Symbols.cancel_presentation,
|
||||||
|
label: 'Revoke Stop',
|
||||||
|
onTap: () {
|
||||||
|
},
|
||||||
|
),
|
||||||
|
|
||||||
|
const Divider(height: 1,),
|
||||||
|
|
||||||
|
ChequeManagementTile(
|
||||||
|
icon: Symbols.payments,
|
||||||
|
label: 'Positive Pay',
|
||||||
|
onTap: () {
|
||||||
|
},
|
||||||
|
),
|
||||||
|
|
||||||
|
const Divider(height: 1,),
|
||||||
|
|
||||||
|
],
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
class ChequeManagementTile extends StatelessWidget {
|
||||||
|
final IconData icon;
|
||||||
|
final String label;
|
||||||
|
final VoidCallback onTap;
|
||||||
|
|
||||||
|
const ChequeManagementTile({
|
||||||
|
super.key,
|
||||||
|
required this.icon,
|
||||||
|
required this.label,
|
||||||
|
required this.onTap,
|
||||||
|
});
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return ListTile(
|
||||||
|
leading: Icon(icon),
|
||||||
|
title: Text(label),
|
||||||
|
trailing: const Icon(Symbols.arrow_right, size: 20),
|
||||||
|
onTap: onTap,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
@ -1,6 +1,7 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:kmobile/features/accounts/screens/account_info_screen.dart';
|
import 'package:kmobile/features/accounts/screens/account_info_screen.dart';
|
||||||
import 'package:kmobile/features/accounts/screens/account_statement_screen.dart';
|
import 'package:kmobile/features/accounts/screens/account_statement_screen.dart';
|
||||||
|
import 'package:kmobile/features/cheque/screens/cheque_management_screen.dart';
|
||||||
import 'package:kmobile/features/customer_info/screens/customer_info_screen.dart';
|
import 'package:kmobile/features/customer_info/screens/customer_info_screen.dart';
|
||||||
import 'package:kmobile/features/beneficiaries/screens/manage_beneficiaries_screen.dart';
|
import 'package:kmobile/features/beneficiaries/screens/manage_beneficiaries_screen.dart';
|
||||||
import 'package:material_symbols_icons/material_symbols_icons.dart';
|
import 'package:material_symbols_icons/material_symbols_icons.dart';
|
||||||
@ -125,7 +126,10 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|||||||
builder: (context) => const AccountStatementScreen()));
|
builder: (context) => const AccountStatementScreen()));
|
||||||
}),
|
}),
|
||||||
_buildQuickLink(Symbols.checkbook, "Handle \n Cheque",
|
_buildQuickLink(Symbols.checkbook, "Handle \n Cheque",
|
||||||
() => print("")),
|
() {
|
||||||
|
Navigator.push(context, MaterialPageRoute(
|
||||||
|
builder: (context) => const ChequeManagementScreen()));
|
||||||
|
}),
|
||||||
_buildQuickLink(Icons.group, "Manage \n Beneficiary",
|
_buildQuickLink(Icons.group, "Manage \n Beneficiary",
|
||||||
() {
|
() {
|
||||||
Navigator.push(context, MaterialPageRoute(
|
Navigator.push(context, MaterialPageRoute(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user