fix: Implement totp on exchange to external ticket as well as update UI properly when a preset is selected (#1156)

Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
This commit is contained in:
Adegoke David
2023-11-02 20:17:52 +02:00
committed by GitHub
co-authored by OmarHatem
parent d997ee81a1
commit 9aede1f3c1
32 changed files with 88 additions and 9 deletions
@@ -133,6 +133,17 @@ class _2FAControlsWidget extends StatelessWidget {
},
),
StandardListSeparator(padding: EdgeInsets.symmetric(horizontal: 24)),
Observer(
builder: (context) {
return SettingsSwitcherCell(
title: S.current.require_for_exchanges_to_external_wallets,
value: setup2FAViewModel.shouldRequireTOTP2FAForExchangesToExternalWallets,
onValueChange: (context, value) async =>
setup2FAViewModel.switchShouldRequireTOTP2FAForExchangesToExternalWallets(value),
);
},
),
StandardListSeparator(padding: EdgeInsets.symmetric(horizontal: 24)),
Observer(
builder: (context) {
return SettingsSwitcherCell(