Skip to content

Commit 150f02f

Browse files
authored
Fix/keyboard showing (#138)
1 parent cd75004 commit 150f02f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/src/views/widget/step_view.dart

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,13 @@ class StepView extends StatelessWidget {
4747
padding: const EdgeInsets.symmetric(vertical: 32.0),
4848
child: OutlinedButton(
4949
onPressed: isValid || step.isOptional
50-
? () =>
51-
surveyController.nextStep(context, resultFunction)
50+
? () => [
51+
FocusScope.of(context).hasFocus
52+
? FocusScope.of(context).unfocus()
53+
: null,
54+
surveyController.nextStep(
55+
context, resultFunction),
56+
]
5257
: null,
5358
child: Text(
5459
context.read<Map<String, String>?>()?['next'] ??

0 commit comments

Comments
 (0)