Skip to content

Commit f608106

Browse files
committed
fix: localization of next button
1 parent 2b54f16 commit f608106

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# 0.1.3
22
- INFO: Update dependencies (Flutter 3.10)
33
- FIX: Fix validation of boolean answer format
4+
- FIX: Fix localization of next button
45
# 0.1.2
56
- INFO: Update dependencies (Flutter 3.7.0)
67

lib/src/views/widget/step_view.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,8 @@ class StepView extends StatelessWidget {
5151
surveyController.nextStep(context, resultFunction)
5252
: null,
5353
child: Text(
54-
step.buttonText?.toUpperCase() ??
55-
context
56-
.read<Map<String, String>?>()?['next']
57-
?.toUpperCase() ??
54+
context.read<Map<String, String>?>()?['next'] ??
55+
step.buttonText ??
5856
'Next',
5957
style: TextStyle(
6058
color: isValid

0 commit comments

Comments
 (0)