File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change 1
- library form_builder_extra_fields;
2
-
3
1
export 'package:dropdown_search/dropdown_search.dart' ;
4
2
export 'package:flutter_rating_bar/flutter_rating_bar.dart' ;
5
3
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ extension on Color {
23
23
}
24
24
25
25
return '${leadingHashSign ? '#' : '' }'
26
- '${hexValue (alpha ) }${hexValue (red ) }${hexValue (green ) }${hexValue (blue )}' ;
26
+ '${hexValue (a . toInt ()) }${hexValue (r . toInt ()) }${hexValue (g . toInt ()) }${hexValue (b . toInt () )}' ;
27
27
}
28
28
}
29
29
@@ -252,8 +252,6 @@ class FormBuilderColorPickerFieldState extends FormBuilderFieldDecorationState<
252
252
onColorChanged: _colorChanged,
253
253
availableColors: widget.availableColors,
254
254
);
255
- default :
256
- throw 'Unknown ColorPickerType' ;
257
255
}
258
256
}
259
257
You can’t perform that action at this time.
0 commit comments