Ux enhancements (#2031)
* Fix dashboard card outline * Add back wallets menu button * Disable boxshadow again
tuxsudo committed
Feb 15, 2025 at 12:19 UTC
420d77c1436bad5a9b26af1a1ee5b7ab1f31d6af
3 files changed
+20
-6
lib/src/screens/dashboard/pages/balance/balance_row_widget.dart
+1
-1
@@ -329,7 +329,7 @@ class BalanceRowWidget extends StatelessWidget {
329
borderRadius: BorderRadius.circular(30.0),
330
border: Border.all(
331
color: Theme.of(context).extension<BalancePageTheme>()!.cardBorderColor,
332
- width: 1,
332
+ width: 1.5,
333
),
334
color: Theme.of(context).extension<SyncIndicatorTheme>()!.syncedBackgroundColor,
335
boxShadow: [
lib/src/widgets/dashboard_card_widget.dart
+7
-5
@@ -46,9 +46,10 @@ class DashBoardRoundedCardWidget extends StatelessWidget {
46
width: double.infinity,
47
decoration: BoxDecoration(
48
borderRadius: BorderRadius.circular(customBorder ?? 20),
49
- border: Border.all(
50
- color: Theme.of(context).extension<BalancePageTheme>()!.cardBorderColor,
51
- ),
49
+ // border: Border.all(
50
+ // color: Theme.of(context).extension<BalancePageTheme>()!.cardBorderColor,
51
+ // width: 1
52
+ // ),
53
// boxShadow: [
54
// BoxShadow(
55
// color: Theme.of(context).extension<BalancePageTheme>()!.cardBorderColor
@@ -58,9 +59,10 @@ class DashBoardRoundedCardWidget extends StatelessWidget {
59
// )
60
// ],
61
),
61
- child: TextButton(
62
+ child: OutlinedButton(
63
onPressed: onTap,
63
- style: TextButton.styleFrom(
64
+ style: OutlinedButton.styleFrom(
65
+ side: BorderSide(width: 1, color: Theme.of(context).extension<BalancePageTheme>()!.cardBorderColor),
66
backgroundColor:
67
Theme.of(context).extension<SyncIndicatorTheme>()!.syncedBackgroundColor,
68
shape: RoundedRectangleBorder(
lib/src/widgets/setting_actions.dart
+12
@@ -17,6 +17,7 @@ class SettingActions {
17
18
static List<SettingActions> all = [
19
connectionSettingAction,
20
+ walletSettingAction,
21
addressBookSettingAction,
22
silentPaymentsSettingAction,
23
litecoinMwebSettingAction,
@@ -30,6 +31,7 @@ class SettingActions {
31
32
static List<SettingActions> desktopSettings = [
33
connectionSettingAction,
34
+ walletSettingAction,
35
addressBookSettingAction,
36
silentPaymentsSettingAction,
37
securityBackupSettingAction,
@@ -75,6 +77,16 @@ class SettingActions {
77
},
78
);
79
80
+ static SettingActions walletSettingAction = SettingActions._(
81
+ key: ValueKey('dashboard_page_menu_widget_wallet_menu_button_key'),
82
+ name: (context) => S.of(context).wallets,
83
+ image: 'assets/images/wallet_menu.png',
84
+ onTap: (BuildContext context) {
85
+ Navigator.pop(context);
86
+ Navigator.of(context).pushNamed(Routes.walletList);
87
+ },
88
+ );
89
+
90
static SettingActions addressBookSettingAction = SettingActions._(
91
key: ValueKey('dashboard_page_menu_widget_address_book_button_key'),
92
name: (context) => S.of(context).address_book_menu,