Skip to content

Commit 6175a1e

Browse files
committed
Merge branches 'master' and 'master' of https://github.com/danvick/flutter_form_builder
2 parents 7121731 + 21757ff commit 6175a1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/fields/form_builder_rate.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class _FormBuilderRateState extends State<FormBuilderRate> {
106106
Widget _buildRatingBar(FormFieldState<dynamic> field) {
107107
if (_readOnly) {
108108
return RatingBar.readOnly(
109-
initialRating: field.value,
109+
initialRating: field.value.toDouble(),
110110
maxRating: widget.max.toInt(),
111111
filledIcon: widget.icon,
112112
filledColor: widget.filledColor,
@@ -120,7 +120,7 @@ class _FormBuilderRateState extends State<FormBuilderRate> {
120120
}
121121
return RatingBar(
122122
key: ObjectKey(field.value),
123-
initialRating: field.value,
123+
initialRating: field.value.toDouble(),
124124
maxRating: widget.max.toInt(),
125125
filledIcon: widget.icon,
126126
filledColor: widget.filledColor,

0 commit comments

Comments
 (0)