* Remove StandardListSeparator from Security and backup page

* Remove StandardListSeparator from Connection and sync page

* Remove StandardListSeparator from Other settings page
This commit is contained in:
tuxsudo 2024-02-22 15:39:39 -05:00 committed by GitHub
parent d6af37df06
commit 5a7ea87543
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 0 additions and 11 deletions

View file

@ -38,13 +38,11 @@ class ConnectionSyncPage extends BasePage {
title: S.current.reconnect, title: S.current.reconnect,
handler: (context) => _presentReconnectAlert(context), handler: (context) => _presentReconnectAlert(context),
), ),
const StandardListSeparator(padding: EdgeInsets.symmetric(horizontal: 24)),
if (dashboardViewModel.hasRescan) ...[ if (dashboardViewModel.hasRescan) ...[
SettingsCellWithArrow( SettingsCellWithArrow(
title: S.current.rescan, title: S.current.rescan,
handler: (context) => Navigator.of(context).pushNamed(Routes.rescan), handler: (context) => Navigator.of(context).pushNamed(Routes.rescan),
), ),
const StandardListSeparator(padding: EdgeInsets.symmetric(horizontal: 24)),
if (DeviceInfo.instance.isMobile) ...[ if (DeviceInfo.instance.isMobile) ...[
Observer(builder: (context) { Observer(builder: (context) {
return SettingsPickerCell<SyncMode>( return SettingsPickerCell<SyncMode>(
@ -82,7 +80,6 @@ class ConnectionSyncPage extends BasePage {
} }
}); });
}), }),
const StandardListSeparator(padding: EdgeInsets.symmetric(horizontal: 24)),
Observer(builder: (context) { Observer(builder: (context) {
return SettingsSwitcherCell( return SettingsSwitcherCell(
title: S.current.sync_all_wallets, title: S.current.sync_all_wallets,
@ -90,14 +87,12 @@ class ConnectionSyncPage extends BasePage {
onValueChange: (_, bool value) => dashboardViewModel.setSyncAll(value), onValueChange: (_, bool value) => dashboardViewModel.setSyncAll(value),
); );
}), }),
const StandardListSeparator(padding: EdgeInsets.symmetric(horizontal: 24)),
], ],
], ],
SettingsCellWithArrow( SettingsCellWithArrow(
title: S.current.manage_nodes, title: S.current.manage_nodes,
handler: (context) => Navigator.of(context).pushNamed(Routes.manageNodes), handler: (context) => Navigator.of(context).pushNamed(Routes.manageNodes),
), ),
const StandardListSeparator(padding: EdgeInsets.symmetric(horizontal: 24)),
Observer( Observer(
builder: (context) { builder: (context) {
if (!dashboardViewModel.hasPowNodes) return const SizedBox(); if (!dashboardViewModel.hasPowNodes) return const SizedBox();
@ -108,7 +103,6 @@ class ConnectionSyncPage extends BasePage {
title: S.current.manage_pow_nodes, title: S.current.manage_pow_nodes,
handler: (context) => Navigator.of(context).pushNamed(Routes.managePowNodes), handler: (context) => Navigator.of(context).pushNamed(Routes.managePowNodes),
), ),
const StandardListSeparator(padding: EdgeInsets.symmetric(horizontal: 24)),
], ],
); );
}, },
@ -117,7 +111,6 @@ class ConnectionSyncPage extends BasePage {
WalletConnectTile( WalletConnectTile(
onTap: () => Navigator.of(context).pushNamed(Routes.walletConnectConnectionsListing), onTap: () => Navigator.of(context).pushNamed(Routes.walletConnectConnectionsListing),
), ),
const StandardListSeparator(padding: EdgeInsets.symmetric(horizontal: 24)),
], ],
if (FeatureFlag.isInAppTorEnabled) if (FeatureFlag.isInAppTorEnabled)
SettingsCellWithArrow( SettingsCellWithArrow(

View file

@ -61,7 +61,6 @@ class OtherSettingsPage extends BasePage {
handler: (BuildContext context) => handler: (BuildContext context) =>
Navigator.of(context).pushNamed(Routes.readDisclaimer), Navigator.of(context).pushNamed(Routes.readDisclaimer),
), ),
StandardListSeparator(padding: EdgeInsets.symmetric(horizontal: 24)),
Spacer(), Spacer(),
SettingsVersionCell( SettingsVersionCell(
title: S.of(context).version(_otherSettingsViewModel.currentVersion)), title: S.of(context).version(_otherSettingsViewModel.currentVersion)),

View file

@ -37,7 +37,6 @@ class SecurityBackupPage extends BasePage {
.shouldRequireTOTP2FAForAllSecurityAndBackupSettings, .shouldRequireTOTP2FAForAllSecurityAndBackupSettings,
), ),
), ),
StandardListSeparator(padding: EdgeInsets.symmetric(horizontal: 24)),
SettingsCellWithArrow( SettingsCellWithArrow(
title: S.current.create_backup, title: S.current.create_backup,
handler: (_) => _authService.authenticateAction( handler: (_) => _authService.authenticateAction(
@ -47,7 +46,6 @@ class SecurityBackupPage extends BasePage {
.shouldRequireTOTP2FAForAllSecurityAndBackupSettings, .shouldRequireTOTP2FAForAllSecurityAndBackupSettings,
), ),
), ),
StandardListSeparator(padding: EdgeInsets.symmetric(horizontal: 24)),
SettingsCellWithArrow( SettingsCellWithArrow(
title: S.current.settings_change_pin, title: S.current.settings_change_pin,
handler: (_) => _authService.authenticateAction( handler: (_) => _authService.authenticateAction(
@ -60,7 +58,6 @@ class SecurityBackupPage extends BasePage {
.shouldRequireTOTP2FAForAllSecurityAndBackupSettings, .shouldRequireTOTP2FAForAllSecurityAndBackupSettings,
), ),
), ),
StandardListSeparator(padding: EdgeInsets.symmetric(horizontal: 24)),
if (DeviceInfo.instance.isMobile) if (DeviceInfo.instance.isMobile)
Observer(builder: (_) { Observer(builder: (_) {
return SettingsSwitcherCell( return SettingsSwitcherCell(