Skip to content

Commit

Permalink
Fix/keyboard showing (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
adar2378 authored Nov 29, 2023
1 parent cd75004 commit 150f02f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/src/views/widget/step_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,13 @@ class StepView extends StatelessWidget {
padding: const EdgeInsets.symmetric(vertical: 32.0),
child: OutlinedButton(
onPressed: isValid || step.isOptional
? () =>
surveyController.nextStep(context, resultFunction)
? () => [
FocusScope.of(context).hasFocus
? FocusScope.of(context).unfocus()
: null,
surveyController.nextStep(
context, resultFunction),
]
: null,
child: Text(
context.read<Map<String, String>?>()?['next'] ??
Expand Down

0 comments on commit 150f02f

Please sign in to comment.