Subtitles added in payment tabs
This commit is contained in:
@@ -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,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user