fixed warnings related to colors and deleted some commented code

This commit is contained in:
asif
2025-08-24 00:31:25 +05:30
parent 59eb509dda
commit 7fe8e8f084

View File

@@ -13,14 +13,6 @@ class AccountCard extends StatelessWidget {
width: 300, width: 300,
padding: const EdgeInsets.all(20), padding: const EdgeInsets.all(20),
decoration: BoxDecoration( decoration: BoxDecoration(
// gradient: LinearGradient(
// begin: Alignment.topLeft,
// end: Alignment.bottomRight,
// colors: [
// Theme.of(context).primaryColor,
// Theme.of(context).primaryColor.withBlue(200),
// ],
// ),
color: Theme.of(context).primaryColor, color: Theme.of(context).primaryColor,
borderRadius: BorderRadius.circular(12), borderRadius: BorderRadius.circular(12),
boxShadow: [ boxShadow: [
@@ -58,7 +50,7 @@ class AccountCard extends StatelessWidget {
Text( Text(
account.accountNumber, account.accountNumber,
style: TextStyle( style: TextStyle(
color: Theme.of(context).dialogBackgroundColor, fontSize: 16), color: const DialogThemeData().backgroundColor, fontSize: 16),
), ),
const SizedBox(height: 30), const SizedBox(height: 30),
Text( Text(
@@ -73,7 +65,7 @@ class AccountCard extends StatelessWidget {
Text( Text(
AppLocalizations.of(context).availableBalance, AppLocalizations.of(context).availableBalance,
style: TextStyle( style: TextStyle(
color: Theme.of(context).dialogBackgroundColor, fontSize: 12), color: const DialogThemeData().backgroundColor, fontSize: 16),
), ),
], ],
), ),