File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ class _FormBuilderRateState extends State<FormBuilderRate> {
106
106
Widget _buildRatingBar (FormFieldState <dynamic > field) {
107
107
if (_readOnly) {
108
108
return RatingBar .readOnly (
109
- initialRating: field.value,
109
+ initialRating: field.value. toDouble () ,
110
110
maxRating: widget.max.toInt (),
111
111
filledIcon: widget.icon,
112
112
filledColor: widget.filledColor,
@@ -120,7 +120,7 @@ class _FormBuilderRateState extends State<FormBuilderRate> {
120
120
}
121
121
return RatingBar (
122
122
key: ObjectKey (field.value),
123
- initialRating: field.value,
123
+ initialRating: field.value. toDouble () ,
124
124
maxRating: widget.max.toInt (),
125
125
filledIcon: widget.icon,
126
126
filledColor: widget.filledColor,
You can’t perform that action at this time.
0 commit comments