revert where keyboard popup happens + uri fix

This commit is contained in:
Matthew Fosse 2024-05-17 10:33:01 -07:00
parent f5ff859e4f
commit 9d0576c0ec

View file

@ -127,10 +127,6 @@ class _WalletSeedPageBodyState extends State<WalletSeedPageBody> {
// required to setup autofill context: // required to setup autofill context:
_nameFieldController.text = widget.walletSeedViewModel.name; _nameFieldController.text = widget.walletSeedViewModel.name;
WidgetsBinding.instance.addPostFrameCallback((_) async {
await setupPasswordManager();
});
} }
Future<void> setupPasswordManager() async { Future<void> setupPasswordManager() async {
@ -316,9 +312,8 @@ class _WalletSeedPageBodyState extends State<WalletSeedPageBody> {
PrimaryButton( PrimaryButton(
onPressed: () async { onPressed: () async {
await launchUrl( await launchUrl(
Uri.https( Uri.parse(
"guides.cakewallet.com", "https://guides.cakewallet.com/docs/basic-features/create-first-wallet/#saving-seed-with-password-manager",
"/docs/basic-features/create-first-wallet/#saving-seed-with-password-manager",
), ),
mode: LaunchMode.externalApplication, mode: LaunchMode.externalApplication,
); );
@ -334,6 +329,8 @@ class _WalletSeedPageBodyState extends State<WalletSeedPageBody> {
) ?? ) ??
false; false;
if (open) { if (open) {
await setupPasswordManager();
await Future.delayed(Duration(milliseconds: 300));
TextInput.finishAutofillContext(); TextInput.finishAutofillContext();
} }
}, },