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,
padding: const EdgeInsets.all(20),
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,
borderRadius: BorderRadius.circular(12),
boxShadow: [
@@ -58,7 +50,7 @@ class AccountCard extends StatelessWidget {
Text(
account.accountNumber,
style: TextStyle(
color: Theme.of(context).dialogBackgroundColor, fontSize: 16),
color: const DialogThemeData().backgroundColor, fontSize: 16),
),
const SizedBox(height: 30),
Text(
@@ -73,7 +65,7 @@ class AccountCard extends StatelessWidget {
Text(
AppLocalizations.of(context).availableBalance,
style: TextStyle(
color: Theme.of(context).dialogBackgroundColor, fontSize: 12),
color: const DialogThemeData().backgroundColor, fontSize: 16),
),
],
),