changed primary color usage to fix the color bug in dark mode

Changed Theme.of(context).primaryColor to Theme.of(contex).colorScheme.primary to make dark mode work properly.
This commit is contained in:
asif
2025-09-03 23:49:30 +05:30
parent 85f58c1e25
commit 64e80148a3
17 changed files with 234 additions and 202 deletions

View File

@@ -1,6 +1,6 @@
import 'package:flutter/material.dart';
Widget getBankLogo(String? bankName) {
Widget getBankLogo(String? bankName, BuildContext context) {
if (bankName != null && bankName.toLowerCase().contains('state bank of')) {
return Image.asset(
'assets/images/sbi_logo.png',
@@ -72,10 +72,10 @@ Widget getBankLogo(String? bankName) {
height: 40,
);
} else {
return const Icon(
return Icon(
Icons.account_balance,
size: 40,
color: Colors.grey,
color: Theme.of(context).colorScheme.outline,
);
}
}