Skip to content

Commit e4c5302

Browse files
authored
feat : focus transfer
1 parent fc7dc47 commit e4c5302

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/presentation/signup/widgets/signup_pages.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Widget _pageOne() {
1414
controller: state.nameController,
1515
onChanged: (value) =>
1616
context.read<SignUpBloc>().add(NameInput(value)),
17+
onEditingComplete: () => FocusScope.of(context).nextFocus(),
1718
),
1819
SizedBox(height: 34.r),
1920
FormInput(
@@ -23,6 +24,7 @@ Widget _pageOne() {
2324
errorText: state.isEmailUnique ? null : AppStrings.duplicateEmail,
2425
onChanged: (value) =>
2526
context.read<SignUpBloc>().add(EmailInput(value)),
27+
onEditingComplete: () => FocusScope.of(context).nextFocus(),
2628
),
2729
SizedBox(height: 34.r),
2830
Text(
@@ -283,6 +285,7 @@ Widget _pageFour() {
283285
Svg(AppAssets.person),
284286
),
285287
),
288+
onEditingComplete: () => FocusScope.of(context).nextFocus(),
286289
),
287290
SizedBox(height: 34.r),
288291
TextInput(
@@ -311,6 +314,7 @@ Widget _pageFour() {
311314
onPressed: () =>
312315
context.read<SignUpBloc>().add(const ToggleObscure()),
313316
),
317+
onEditingComplete: () => FocusScope.of(context).nextFocus(),
314318
),
315319
],
316320
);

0 commit comments

Comments
 (0)