From e4c530294b3d6ce2ce17ed0534598edcdee827f2 Mon Sep 17 00:00:00 2001 From: Anaisha12 <99040167+Anaisha12@users.noreply.github.com> Date: Mon, 1 Aug 2022 07:31:27 +0530 Subject: [PATCH] feat : focus transfer --- lib/presentation/signup/widgets/signup_pages.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/presentation/signup/widgets/signup_pages.dart b/lib/presentation/signup/widgets/signup_pages.dart index a9947d8..53221c4 100644 --- a/lib/presentation/signup/widgets/signup_pages.dart +++ b/lib/presentation/signup/widgets/signup_pages.dart @@ -14,6 +14,7 @@ Widget _pageOne() { controller: state.nameController, onChanged: (value) => context.read().add(NameInput(value)), + onEditingComplete: () => FocusScope.of(context).nextFocus(), ), SizedBox(height: 34.r), FormInput( @@ -23,6 +24,7 @@ Widget _pageOne() { errorText: state.isEmailUnique ? null : AppStrings.duplicateEmail, onChanged: (value) => context.read().add(EmailInput(value)), + onEditingComplete: () => FocusScope.of(context).nextFocus(), ), SizedBox(height: 34.r), Text( @@ -283,6 +285,7 @@ Widget _pageFour() { Svg(AppAssets.person), ), ), + onEditingComplete: () => FocusScope.of(context).nextFocus(), ), SizedBox(height: 34.r), TextInput( @@ -311,6 +314,7 @@ Widget _pageFour() { onPressed: () => context.read().add(const ToggleObscure()), ), + onEditingComplete: () => FocusScope.of(context).nextFocus(), ), ], );