Subtitles added in payment tabs
This commit is contained in:
@@ -338,7 +338,7 @@ class _DashboardScreenState extends State<DashboardScreen>
|
||||
return "Cash Credit Account";
|
||||
case 'od':
|
||||
return "Overdraft Account";
|
||||
default:
|
||||
default:
|
||||
return AppLocalizations.of(context).unknownAccount;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,6 +43,7 @@ class FundTransferScreen extends StatelessWidget {
|
||||
child: FundTransferManagementTile(
|
||||
icon: Symbols.person,
|
||||
label: "Self Pay",
|
||||
subtitle: "Move money between your own accounts with ease. Your funds, your way.",
|
||||
onTap: () {
|
||||
Navigator.push(
|
||||
context,
|
||||
@@ -64,6 +65,7 @@ class FundTransferScreen extends StatelessWidget {
|
||||
child: FundTransferManagementTile(
|
||||
icon: Symbols.input_circle,
|
||||
label: AppLocalizations.of(context).ownBank,
|
||||
subtitle: "Send money to your saved beneficiaries within Kangra Bank.",
|
||||
onTap: () {
|
||||
Navigator.push(
|
||||
context,
|
||||
@@ -84,6 +86,7 @@ class FundTransferScreen extends StatelessWidget {
|
||||
child: FundTransferManagementTile(
|
||||
icon: Symbols.output_circle,
|
||||
label: AppLocalizations.of(context).outsideBank,
|
||||
subtitle: "Transfer funds to your saved beneficiaries in any other bank across India.",
|
||||
onTap: () {
|
||||
Navigator.push(
|
||||
context,
|
||||
@@ -127,6 +130,7 @@ class FundTransferScreen extends StatelessWidget {
|
||||
class FundTransferManagementTile extends StatelessWidget {
|
||||
final IconData icon;
|
||||
final String label;
|
||||
final String? subtitle;
|
||||
final VoidCallback onTap;
|
||||
final bool disable;
|
||||
|
||||
@@ -134,6 +138,7 @@ class FundTransferManagementTile extends StatelessWidget {
|
||||
super.key,
|
||||
required this.icon,
|
||||
required this.label,
|
||||
this.subtitle,
|
||||
required this.onTap,
|
||||
this.disable = false,
|
||||
});
|
||||
@@ -174,6 +179,19 @@ class FundTransferManagementTile extends StatelessWidget {
|
||||
: theme.colorScheme.onSurface,
|
||||
),
|
||||
),
|
||||
if (subtitle != null)
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(top: 8.0),
|
||||
child: Text(
|
||||
subtitle!,
|
||||
textAlign: TextAlign.center,
|
||||
style: theme.textTheme.bodyMedium?.copyWith(
|
||||
color: disable
|
||||
? theme.disabledColor
|
||||
: theme.colorScheme.onSurfaceVariant,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
@@ -32,6 +32,7 @@ class _QuickPayScreen extends State<QuickPayScreen> {
|
||||
child: QuickPayManagementTile(
|
||||
icon: Symbols.input_circle,
|
||||
label: AppLocalizations.of(context).ownBank,
|
||||
subtitle: "Seamlessly send money to your loved ones within Kangra Bank. Fast, secure, and always at your fingertips!",
|
||||
onTap: () {
|
||||
Navigator.push(
|
||||
context,
|
||||
@@ -49,6 +50,7 @@ class _QuickPayScreen extends State<QuickPayScreen> {
|
||||
child: QuickPayManagementTile(
|
||||
icon: Symbols.output_circle,
|
||||
label: AppLocalizations.of(context).outsideBank,
|
||||
subtitle: "Transfer funds to any bank across India with ease. Your transactions are secure and processed quickly.",
|
||||
onTap: () {
|
||||
Navigator.push(
|
||||
context,
|
||||
@@ -87,6 +89,7 @@ class _QuickPayScreen extends State<QuickPayScreen> {
|
||||
class QuickPayManagementTile extends StatelessWidget {
|
||||
final IconData icon;
|
||||
final String label;
|
||||
final String? subtitle;
|
||||
final VoidCallback onTap;
|
||||
final bool disable;
|
||||
|
||||
@@ -94,6 +97,7 @@ class QuickPayManagementTile extends StatelessWidget {
|
||||
super.key,
|
||||
required this.icon,
|
||||
required this.label,
|
||||
this.subtitle,
|
||||
required this.onTap,
|
||||
this.disable = false,
|
||||
});
|
||||
@@ -133,6 +137,19 @@ class QuickPayManagementTile extends StatelessWidget {
|
||||
: theme.colorScheme.onSurface,
|
||||
),
|
||||
),
|
||||
if (subtitle != null) // Conditionally display subtitle
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(top: 8.0),
|
||||
child: Text(
|
||||
subtitle!,
|
||||
textAlign: TextAlign.center,
|
||||
style: theme.textTheme.bodyMedium?.copyWith(
|
||||
color: disable
|
||||
? theme.disabledColor
|
||||
: theme.colorScheme.onSurfaceVariant,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user