Yojna & Cheque done

This commit is contained in:
2026-03-12 13:44:13 +05:30
parent 1da7574ddb
commit dfdc293309
26 changed files with 3687 additions and 422 deletions

View File

@@ -1,4 +1,7 @@
import 'package:kmobile/features/account_opening/screens/account_opening_screen.dart';
import 'package:kmobile/features/card/screens/card_management_screen.dart';
import 'package:kmobile/features/service/screens/atm_locator_screen.dart';
import 'package:kmobile/features/service/screens/enquiry_screen.dart';
import '../../../l10n/app_localizations.dart';
import 'package:flutter/material.dart';
import 'package:material_symbols_icons/material_symbols_icons.dart';
@@ -43,7 +46,6 @@ class _ServiceScreen extends State<ServiceScreen> {
disabled: false,
),
),
const SizedBox(height: 16),
Expanded(
child: ServiceManagementTile(
icon: Symbols.question_mark,
@@ -57,7 +59,6 @@ class _ServiceScreen extends State<ServiceScreen> {
disabled: false,
),
),
const SizedBox(height: 16),
Expanded(
child: ServiceManagementTile(
icon: Symbols.location_pin,
@@ -71,7 +72,46 @@ class _ServiceScreen extends State<ServiceScreen> {
disabled: false,
),
),
// No Spacer() needed here as Expanded children will fill space
// Expanded(
// child: ServiceManagementTile(
// icon: Symbols.box,
// label: "Account Opening",
// onTap: () {
// Navigator.push(
// context,
// MaterialPageRoute(
// builder: (context) => const AccountOpeningScreen()));
// },
// disabled: false,
// ),
// ),
// Expanded(
// child: ServiceManagementTile(
// icon: Symbols.credit_card,
// label: AppLocalizations.of(context).cardManagement,
// onTap: () {
// Navigator.push(
// context,
// MaterialPageRoute(
// builder: (context) => const CardManagementScreen()));
// },
// disabled: false,
// ),
// ),
Expanded(
child: ServiceManagementTile(
icon: Symbols.support_agent,
label: AppLocalizations.of(context).contactUs,
onTap: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => const EnquiryScreen()));
},
disabled: false,
),
),
// No Spacer() needed here as Expanded children will fill space
],
),
),
@@ -122,32 +162,33 @@ class ServiceManagementTile extends StatelessWidget {
onTap:
disabled ? null : onTap, // Disable InkWell if the tile is disabled
borderRadius: BorderRadius.circular(12.0),
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 24.0, horizontal: 16.0),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(
icon,
size: 48, // Make icon larger
color:
disabled ? theme.disabledColor : theme.colorScheme.primary,
child: Center(
child: SingleChildScrollView(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(
icon,
size: 48, // Make icon larger
color:
disabled ? theme.disabledColor : theme.colorScheme.primary,
),
const SizedBox(height: 12),
Text(
label,
textAlign: TextAlign.center,
style: theme.textTheme.titleLarge?.copyWith(
fontWeight: FontWeight.bold,
color: disabled
? theme.disabledColor
: theme.colorScheme.onSurface,
),
),
],
),
const SizedBox(height: 12),
Text(
label,
textAlign: TextAlign.center,
style: theme.textTheme.titleLarge?.copyWith(
fontWeight: FontWeight.bold,
color: disabled
? theme.disabledColor
: theme.colorScheme.onSurface,
),
),
],
),
),
),
),
);
}
}