mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-21 06:18:42 +02:00
Ux enhancements (#2031)
* Fix dashboard card outline * Add back wallets menu button * Disable boxshadow again
This commit is contained in:
@@ -329,7 +329,7 @@ class BalanceRowWidget extends StatelessWidget {
|
||||
borderRadius: BorderRadius.circular(30.0),
|
||||
border: Border.all(
|
||||
color: Theme.of(context).extension<BalancePageTheme>()!.cardBorderColor,
|
||||
width: 1,
|
||||
width: 1.5,
|
||||
),
|
||||
color: Theme.of(context).extension<SyncIndicatorTheme>()!.syncedBackgroundColor,
|
||||
boxShadow: [
|
||||
|
||||
@@ -46,9 +46,10 @@ class DashBoardRoundedCardWidget extends StatelessWidget {
|
||||
width: double.infinity,
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(customBorder ?? 20),
|
||||
border: Border.all(
|
||||
color: Theme.of(context).extension<BalancePageTheme>()!.cardBorderColor,
|
||||
),
|
||||
// border: Border.all(
|
||||
// color: Theme.of(context).extension<BalancePageTheme>()!.cardBorderColor,
|
||||
// width: 1
|
||||
// ),
|
||||
// boxShadow: [
|
||||
// BoxShadow(
|
||||
// color: Theme.of(context).extension<BalancePageTheme>()!.cardBorderColor
|
||||
@@ -58,9 +59,10 @@ class DashBoardRoundedCardWidget extends StatelessWidget {
|
||||
// )
|
||||
// ],
|
||||
),
|
||||
child: TextButton(
|
||||
child: OutlinedButton(
|
||||
onPressed: onTap,
|
||||
style: TextButton.styleFrom(
|
||||
style: OutlinedButton.styleFrom(
|
||||
side: BorderSide(width: 1, color: Theme.of(context).extension<BalancePageTheme>()!.cardBorderColor),
|
||||
backgroundColor:
|
||||
Theme.of(context).extension<SyncIndicatorTheme>()!.syncedBackgroundColor,
|
||||
shape: RoundedRectangleBorder(
|
||||
|
||||
@@ -17,6 +17,7 @@ class SettingActions {
|
||||
|
||||
static List<SettingActions> all = [
|
||||
connectionSettingAction,
|
||||
walletSettingAction,
|
||||
addressBookSettingAction,
|
||||
silentPaymentsSettingAction,
|
||||
litecoinMwebSettingAction,
|
||||
@@ -30,6 +31,7 @@ class SettingActions {
|
||||
|
||||
static List<SettingActions> desktopSettings = [
|
||||
connectionSettingAction,
|
||||
walletSettingAction,
|
||||
addressBookSettingAction,
|
||||
silentPaymentsSettingAction,
|
||||
securityBackupSettingAction,
|
||||
@@ -75,6 +77,16 @@ class SettingActions {
|
||||
},
|
||||
);
|
||||
|
||||
static SettingActions walletSettingAction = SettingActions._(
|
||||
key: ValueKey('dashboard_page_menu_widget_wallet_menu_button_key'),
|
||||
name: (context) => S.of(context).wallets,
|
||||
image: 'assets/images/wallet_menu.png',
|
||||
onTap: (BuildContext context) {
|
||||
Navigator.pop(context);
|
||||
Navigator.of(context).pushNamed(Routes.walletList);
|
||||
},
|
||||
);
|
||||
|
||||
static SettingActions addressBookSettingAction = SettingActions._(
|
||||
key: ValueKey('dashboard_page_menu_widget_address_book_button_key'),
|
||||
name: (context) => S.of(context).address_book_menu,
|
||||
|
||||
Reference in New Issue
Block a user