From 9d0576c0ecc106c8082ad2ca6bef2155664dea6c Mon Sep 17 00:00:00 2001 From: Matthew Fosse Date: Fri, 17 May 2024 10:33:01 -0700 Subject: [PATCH] revert where keyboard popup happens + uri fix --- lib/src/screens/seed/wallet_seed_page.dart | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/lib/src/screens/seed/wallet_seed_page.dart b/lib/src/screens/seed/wallet_seed_page.dart index bce2aa358..476202dfe 100644 --- a/lib/src/screens/seed/wallet_seed_page.dart +++ b/lib/src/screens/seed/wallet_seed_page.dart @@ -127,10 +127,6 @@ class _WalletSeedPageBodyState extends State { // required to setup autofill context: _nameFieldController.text = widget.walletSeedViewModel.name; - - WidgetsBinding.instance.addPostFrameCallback((_) async { - await setupPasswordManager(); - }); } Future setupPasswordManager() async { @@ -316,9 +312,8 @@ class _WalletSeedPageBodyState extends State { PrimaryButton( onPressed: () async { await launchUrl( - Uri.https( - "guides.cakewallet.com", - "/docs/basic-features/create-first-wallet/#saving-seed-with-password-manager", + Uri.parse( + "https://guides.cakewallet.com/docs/basic-features/create-first-wallet/#saving-seed-with-password-manager", ), mode: LaunchMode.externalApplication, ); @@ -334,6 +329,8 @@ class _WalletSeedPageBodyState extends State { ) ?? false; if (open) { + await setupPasswordManager(); + await Future.delayed(Duration(milliseconds: 300)); TextInput.finishAutofillContext(); } },