fixed warnings related to colors and deleted some commented code
This commit is contained in:
@@ -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),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
Reference in New Issue
Block a user