We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd75004 commit 150f02fCopy full SHA for 150f02f
lib/src/views/widget/step_view.dart
@@ -47,8 +47,13 @@ class StepView extends StatelessWidget {
47
padding: const EdgeInsets.symmetric(vertical: 32.0),
48
child: OutlinedButton(
49
onPressed: isValid || step.isOptional
50
- ? () =>
51
- surveyController.nextStep(context, resultFunction)
+ ? () => [
+ FocusScope.of(context).hasFocus
52
+ ? FocusScope.of(context).unfocus()
53
+ : null,
54
+ surveyController.nextStep(
55
+ context, resultFunction),
56
+ ]
57
: null,
58
child: Text(
59
context.read<Map<String, String>?>()?['next'] ??
0 commit comments