Minor UI Fixes (#2296)
* Fix some colors * fix(themes): Adjust background and text colors for action buttons on info bottomsheet --------- Co-authored-by: Blazebrain <davidadegoke16@gmail.com>
tuxsudo committed
May 27, 2025 at 12:01 UTC
46a73de82efcf8676431aee1b9f1a93812144a5b
3 files changed
+6
-29
lib/src/screens/exchange/widgets/mobile_exchange_cards_section.dart
+2
-18
@@ -93,15 +93,7 @@ class _BuySellOptionButtonsState extends State<BuySellOptionButtons> {
93
textColor: isBuySelected
94
? Theme.of(context).colorScheme.onPrimary
95
: Theme.of(context).colorScheme.onSecondaryContainer,
96
- image: Image.asset(
97
- 'assets/images/buy.png',
98
- height: 25,
99
- width: 25,
100
- color: isBuySelected
101
- ? Theme.of(context).colorScheme.onPrimary
102
- : Theme.of(context).colorScheme.onSecondaryContainer,
103
- ),
104
- padding: EdgeInsets.only(left: 10, right: 30),
96
+ padding: EdgeInsets.only(left: 50, right: 30),
97
color: isBuySelected
98
? Theme.of(context).colorScheme.primary
99
: Theme.of(context).colorScheme.surfaceContainer,
@@ -122,15 +114,7 @@ class _BuySellOptionButtonsState extends State<BuySellOptionButtons> {
114
textColor: !isBuySelected
115
? Theme.of(context).colorScheme.onPrimary
116
: Theme.of(context).colorScheme.onSecondaryContainer,
125
- image: Image.asset(
126
- 'assets/images/sell.png',
127
- height: 25,
128
- width: 25,
129
- color: !isBuySelected
130
- ? Theme.of(context).colorScheme.onPrimary
131
- : Theme.of(context).colorScheme.onSecondaryContainer,
132
- ),
133
- padding: EdgeInsets.only(left: 10, right: 30),
117
+ padding: EdgeInsets.only(left: 50, right: 30),
118
color: !isBuySelected
119
? Theme.of(context).colorScheme.primary
120
: Theme.of(context).colorScheme.surfaceContainer,
lib/src/screens/welcome/welcome_page.dart
+1
-1
@@ -33,7 +33,7 @@ class WelcomePage extends BasePage {
33
final Uri _url =
34
Uri.parse('https://docs.cakewallet.com/get-started/setup/create-first-wallet/');
35
return IconButton(
36
- icon: Icon(Icons.info_outline),
36
+ icon: Icon(Icons.info_outline, size: 26,),
37
onPressed: () async {
38
await launchUrl(_url);
39
},
lib/src/widgets/bottom_sheet/info_bottom_sheet_widget.dart
+3
-10
@@ -88,7 +88,6 @@ class InfoBottomSheet extends BaseBottomSheet {
88
textAlign: TextAlign.center,
89
style: Theme.of(context).textTheme.bodyMedium!.copyWith(
90
fontSize: 16,
91
-
91
fontWeight: FontWeight.w500,
92
color: Theme.of(context).colorScheme.onSurfaceVariant,
93
decoration: TextDecoration.none,
@@ -138,12 +137,8 @@ class InfoBottomSheet extends BaseBottomSheet {
137
key: leftActionButtonKey,
138
onPressed: actionLeftButton,
139
text: leftButtonText ?? '',
141
- color: currentTheme.isDark
142
- ? Theme.of(context).colorScheme.surfaceContainerLow
143
- : Theme.of(context).colorScheme.surfaceContainer,
144
- textColor: currentTheme.isDark
145
- ? Theme.of(context).colorScheme.onSurfaceVariant
146
- : Theme.of(context).colorScheme.onPrimary,
140
+ color: Theme.of(context).colorScheme.surfaceContainer,
141
+ textColor: Theme.of(context).colorScheme.onSecondaryContainer,
142
),
143
),
144
),
@@ -155,9 +150,7 @@ class InfoBottomSheet extends BaseBottomSheet {
150
onPressed: actionRightButton,
151
text: rightButtonText ?? '',
152
color: Theme.of(context).colorScheme.primary,
158
- textColor: currentTheme.isDark
159
- ? Theme.of(context).colorScheme.onSurfaceVariant
160
- : Theme.of(context).colorScheme.onPrimary,
153
+ textColor: Theme.of(context).colorScheme.onPrimary,
154
),
155
),
156
),