Skip to content

Commit fee08a6

Browse files
committed
fix: buy view details button theme fix
1 parent 6b28742 commit fee08a6

2 files changed

Lines changed: 15 additions & 8 deletions

File tree

lib/features/buy/ui/screens/buy_accelerate_success_screen.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ class BuyAccelerateSuccessScreen extends StatelessWidget {
4242
child: Column(
4343
mainAxisAlignment: .center,
4444
children: [
45-
Icon(Icons.check_circle, size: 100, color: context.appColors.success),
45+
Icon(
46+
Icons.check_circle,
47+
size: 100,
48+
color: context.appColors.success,
49+
),
4650
const SizedBox(height: 20),
4751
Text(
4852
context.loc.buyBitcoinSent,
@@ -74,7 +78,7 @@ class BuyAccelerateSuccessScreen extends StatelessWidget {
7478
);
7579
},
7680
bgColor: context.appColors.secondary,
77-
textColor: context.appColors.onPrimary,
81+
textColor: context.appColors.onSecondary,
7882
),
7983
],
8084
),

lib/features/buy/ui/screens/buy_success_screen.dart

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@ class BuySuccessScreen extends StatelessWidget {
2929
final payoutAmountSat = ConvertAmount.btcToSats(
3030
payoutAmountBtc,
3131
); // Convert sats to BTC
32-
final formattedPayOutAmount =
33-
bitcoinUnit == BitcoinUnit.sats
34-
? FormatAmount.sats(payoutAmountSat)
35-
: FormatAmount.btc(buyOrder.payoutAmount);
32+
final formattedPayOutAmount = bitcoinUnit == BitcoinUnit.sats
33+
? FormatAmount.sats(payoutAmountSat)
34+
: FormatAmount.btc(buyOrder.payoutAmount);
3635
final payoutTime = buyOrder.scheduledPayoutTime;
3736

3837
return PopScope(
@@ -63,7 +62,11 @@ class BuySuccessScreen extends StatelessWidget {
6362
child: Column(
6463
mainAxisAlignment: .center,
6564
children: [
66-
Icon(Icons.check_circle, size: 100, color: context.appColors.success),
65+
Icon(
66+
Icons.check_circle,
67+
size: 100,
68+
color: context.appColors.success,
69+
),
6770
const SizedBox(height: 20),
6871
Text(
6972
context.loc.buyYouBought(formattedPayOutAmount),
@@ -122,7 +125,7 @@ class BuySuccessScreen extends StatelessWidget {
122125
);
123126
},
124127
bgColor: context.appColors.secondary,
125-
textColor: context.appColors.onPrimary,
128+
textColor: context.appColors.onSecondary,
126129
),
127130
],
128131
),

0 commit comments

Comments
 (0)