UI fixes (#1301)
* Remove StandardListSeparator from Security and backup page * Remove StandardListSeparator from Connection and sync page * Remove StandardListSeparator from Other settings page
tuxsudo committed
Feb 22, 2024 at 15:39 UTC
5a7ea87543e4790e5346d8ce844f8460527d2b6d
3 files changed
-11
lib/src/screens/settings/connection_sync_page.dart
-7
@@ -38,13 +38,11 @@ class ConnectionSyncPage extends BasePage {
38
title: S.current.reconnect,
39
handler: (context) => _presentReconnectAlert(context),
40
),
41
- const StandardListSeparator(padding: EdgeInsets.symmetric(horizontal: 24)),
41
if (dashboardViewModel.hasRescan) ...[
42
SettingsCellWithArrow(
43
title: S.current.rescan,
44
handler: (context) => Navigator.of(context).pushNamed(Routes.rescan),
45
),
47
- const StandardListSeparator(padding: EdgeInsets.symmetric(horizontal: 24)),
46
if (DeviceInfo.instance.isMobile) ...[
47
Observer(builder: (context) {
48
return SettingsPickerCell<SyncMode>(
@@ -82,7 +80,6 @@ class ConnectionSyncPage extends BasePage {
80
}
81
});
82
}),
85
- const StandardListSeparator(padding: EdgeInsets.symmetric(horizontal: 24)),
83
Observer(builder: (context) {
84
return SettingsSwitcherCell(
85
title: S.current.sync_all_wallets,
@@ -90,14 +87,12 @@ class ConnectionSyncPage extends BasePage {
87
onValueChange: (_, bool value) => dashboardViewModel.setSyncAll(value),
88
);
89
}),
93
- const StandardListSeparator(padding: EdgeInsets.symmetric(horizontal: 24)),
90
],
91
],
92
SettingsCellWithArrow(
93
title: S.current.manage_nodes,
94
handler: (context) => Navigator.of(context).pushNamed(Routes.manageNodes),
95
),
100
- const StandardListSeparator(padding: EdgeInsets.symmetric(horizontal: 24)),
96
Observer(
97
builder: (context) {
98
if (!dashboardViewModel.hasPowNodes) return const SizedBox();
@@ -108,7 +103,6 @@ class ConnectionSyncPage extends BasePage {
103
title: S.current.manage_pow_nodes,
104
handler: (context) => Navigator.of(context).pushNamed(Routes.managePowNodes),
105
),
111
- const StandardListSeparator(padding: EdgeInsets.symmetric(horizontal: 24)),
106
],
107
);
108
},
@@ -117,7 +111,6 @@ class ConnectionSyncPage extends BasePage {
111
WalletConnectTile(
112
onTap: () => Navigator.of(context).pushNamed(Routes.walletConnectConnectionsListing),
113
),
120
- const StandardListSeparator(padding: EdgeInsets.symmetric(horizontal: 24)),
114
],
115
if (FeatureFlag.isInAppTorEnabled)
116
SettingsCellWithArrow(
lib/src/screens/settings/other_settings_page.dart
-1
@@ -61,7 +61,6 @@ class OtherSettingsPage extends BasePage {
61
handler: (BuildContext context) =>
62
Navigator.of(context).pushNamed(Routes.readDisclaimer),
63
),
64
- StandardListSeparator(padding: EdgeInsets.symmetric(horizontal: 24)),
64
Spacer(),
65
SettingsVersionCell(
66
title: S.of(context).version(_otherSettingsViewModel.currentVersion)),
lib/src/screens/settings/security_backup_page.dart
-3
@@ -37,7 +37,6 @@ class SecurityBackupPage extends BasePage {
37
.shouldRequireTOTP2FAForAllSecurityAndBackupSettings,
38
),
39
),
40
- StandardListSeparator(padding: EdgeInsets.symmetric(horizontal: 24)),
40
SettingsCellWithArrow(
41
title: S.current.create_backup,
42
handler: (_) => _authService.authenticateAction(
@@ -47,7 +46,6 @@ class SecurityBackupPage extends BasePage {
46
.shouldRequireTOTP2FAForAllSecurityAndBackupSettings,
47
),
48
),
50
- StandardListSeparator(padding: EdgeInsets.symmetric(horizontal: 24)),
49
SettingsCellWithArrow(
50
title: S.current.settings_change_pin,
51
handler: (_) => _authService.authenticateAction(
@@ -60,7 +58,6 @@ class SecurityBackupPage extends BasePage {
58
.shouldRequireTOTP2FAForAllSecurityAndBackupSettings,
59
),
60
),
63
- StandardListSeparator(padding: EdgeInsets.symmetric(horizontal: 24)),
61
if (DeviceInfo.instance.isMobile)
62
Observer(builder: (_) {
63
return SettingsSwitcherCell(