Skip to content

Commit

Permalink
feat : focus transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
Anaisha12 authored Aug 1, 2022
1 parent fc7dc47 commit e4c5302
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/presentation/signup/widgets/signup_pages.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Widget _pageOne() {
controller: state.nameController,
onChanged: (value) =>
context.read<SignUpBloc>().add(NameInput(value)),
onEditingComplete: () => FocusScope.of(context).nextFocus(),
),
SizedBox(height: 34.r),
FormInput(
Expand All @@ -23,6 +24,7 @@ Widget _pageOne() {
errorText: state.isEmailUnique ? null : AppStrings.duplicateEmail,
onChanged: (value) =>
context.read<SignUpBloc>().add(EmailInput(value)),
onEditingComplete: () => FocusScope.of(context).nextFocus(),
),
SizedBox(height: 34.r),
Text(
Expand Down Expand Up @@ -283,6 +285,7 @@ Widget _pageFour() {
Svg(AppAssets.person),
),
),
onEditingComplete: () => FocusScope.of(context).nextFocus(),
),
SizedBox(height: 34.r),
TextInput(
Expand Down Expand Up @@ -311,6 +314,7 @@ Widget _pageFour() {
onPressed: () =>
context.read<SignUpBloc>().add(const ToggleObscure()),
),
onEditingComplete: () => FocusScope.of(context).nextFocus(),
),
],
);
Expand Down

0 comments on commit e4c5302

Please sign in to comment.