light mode fixes

This commit is contained in:
Robert Malikowski
2026-08-21 19:14:51 +02:00
parent bf3e2e15a3
commit 6d288832da
4 changed files with 13 additions and 5 deletions
@@ -70,7 +70,9 @@ class BuySellConfirmationPage extends StatelessWidget {
spacing: 8,
children: [
CakeImageWidget(
imageUrl: buySellViewModel.selectedQuote!.darkIconPath,
imageUrl: Theme.of(context).brightness == Brightness.light
? buySellViewModel.selectedQuote!.lightIconPath
: buySellViewModel.selectedQuote!.darkIconPath,
width: 24,
height: 24,
),
@@ -44,7 +44,9 @@ class BuySellPaymentMethodPage extends StatelessWidget {
keyValue: item.title,
label: item.title,
showArrow: false,
iconPath: item.darkIconPath,
iconPath: Theme.of(context).brightness == Brightness.light
? item.lightIconPath
: item.darkIconPath,
iconColor: item.paymentMethodType.isMonochromeIcon
? Theme.of(context).colorScheme.onSurfaceVariant
: null,
@@ -143,8 +143,10 @@ class _BuySellProviderPageState extends State<BuySellProviderPage> {
secondaryLabel: quote.rampName != null ? quote.provider.title : null,
subtitle: quote.badges.isEmpty ? null : quote.badges.join(" - "),
subtitleColor: Theme.of(context).colorScheme.primary,
iconPath: quote.darkIconPath,
onTap: () {
iconPath: Theme.of(context).brightness == Brightness.light
? quote.lightIconPath
: quote.darkIconPath,
onTap: () {
widget.buySellViewModel.changeOption(quote);
navigateToConfirmation(context);
},
@@ -84,7 +84,9 @@ class _BuySellRedirectingPageState extends State<BuySellRedirectingPage> {
spacing: 24,
children: [
CakeImageWidget(
imageUrl: widget.buySellViewModel.selectedQuote!.darkIconPath,
imageUrl: Theme.of(context).brightness == Brightness.light
? widget.buySellViewModel.selectedQuote!.lightIconPath
: widget.buySellViewModel.selectedQuote!.darkIconPath,
width: 64,
height: 64,
),