diff --git a/lib/features/dashboard/screens/dashboard_screen.dart b/lib/features/dashboard/screens/dashboard_screen.dart index b9ad383..8ae880c 100644 --- a/lib/features/dashboard/screens/dashboard_screen.dart +++ b/lib/features/dashboard/screens/dashboard_screen.dart @@ -10,6 +10,7 @@ import 'package:kmobile/features/accounts/screens/transaction_details_screen.dar import 'package:kmobile/features/auth/controllers/auth_cubit.dart'; import 'package:kmobile/features/auth/controllers/auth_state.dart'; import 'package:kmobile/features/customer_info/screens/customer_info_screen.dart'; +import 'package:kmobile/features/cheque/screens/cheque_management_screen.dart'; import 'package:kmobile/features/beneficiaries/screens/manage_beneficiaries_screen.dart'; import 'package:kmobile/features/enquiry/screens/enquiry_screen.dart'; import 'package:kmobile/features/fund_transfer/screens/fund_transfer_screen.dart'; @@ -288,7 +289,6 @@ class _DashboardScreenState extends State final firstName = getProcessedFirstName(currAccount.name); return SingleChildScrollView( - physics: const AlwaysScrollableScrollPhysics(), child: Padding( padding: const EdgeInsets.symmetric(horizontal: 16.0), child: Column( @@ -470,16 +470,16 @@ class _DashboardScreenState extends State AppLocalizations.of(context).quickLinks, style: const TextStyle(fontSize: 17), ), - const SizedBox(height: 16), + const SizedBox(height: 24), // Quick Links GridView.count( - crossAxisCount: 2, // Changed to 2 for two cards in a row + crossAxisCount: 3, shrinkWrap: true, physics: const NeverScrollableScrollPhysics(), crossAxisSpacing: 10, mainAxisSpacing: 10, - childAspectRatio: 1.2, // Adjusted for better fit with 2 cards + childAspectRatio: 1, children: [ _buildQuickLink( Symbols.id_card, @@ -582,9 +582,22 @@ class _DashboardScreenState extends State builder: (context) => const EnquiryScreen())); }), + _buildQuickLink( + Symbols.request_quote, + AppLocalizations.of(context).chequeManagement, + () { + Navigator.push( + context, + MaterialPageRoute( + builder: (context) => + const ChequeManagementScreen(), + ), + ); + }, + ), ], ), - const SizedBox(height: 5), + ], ), ), @@ -633,7 +646,7 @@ class _DashboardScreenState extends State }) { final theme = Theme.of(context); return Card( - elevation: 4, + elevation: 2, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(12.0), ), @@ -645,17 +658,18 @@ class _DashboardScreenState extends State children: [ Icon( icon, - size: 40, + size: 30, color: disable ? theme.disabledColor : theme.colorScheme.primary, ), - const SizedBox(height: 8), + const SizedBox(height: 4), Text( label, textAlign: TextAlign.center, style: theme.textTheme.titleMedium?.copyWith( fontWeight: FontWeight.bold, + fontSize: 12, color: disable ? theme.disabledColor : theme.colorScheme.onSurface,