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 c7ceb19 commit 14844a1Copy full SHA for 14844a1
lib/src/fields/form_builder_rating.dart
@@ -68,7 +68,7 @@ class FormBuilderRating extends FormBuilderField {
68
static Widget _buildRatingBar(_FormBuilderRateState field) {
69
if (field.readOnly) {
70
return RatingBar.readOnly(
71
- initialRating: field.value,
+ initialRating: field.value?.toDouble(),
72
maxRating: field.widget.max.toInt(),
73
filledIcon: field.widget.icon,
74
filledColor: field.widget.filledColor,
@@ -83,7 +83,7 @@ class FormBuilderRating extends FormBuilderField {
83
84
return RatingBar(
85
key: ObjectKey(field.value),
86
87
88
89
0 commit comments