Skip to content

Commit ad210db

Browse files
style: fix lints
1 parent 1a94ab1 commit ad210db

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

lib/form_builder_extra_fields.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
library form_builder_extra_fields;
2-
31
export 'package:dropdown_search/dropdown_search.dart';
42
export 'package:flutter_rating_bar/flutter_rating_bar.dart';
53

lib/src/fields/form_builder_color_picker.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ extension on Color {
2323
}
2424

2525
return '${leadingHashSign ? '#' : ''}'
26-
'${hexValue(alpha)}${hexValue(red)}${hexValue(green)}${hexValue(blue)}';
26+
'${hexValue(a.toInt())}${hexValue(r.toInt())}${hexValue(g.toInt())}${hexValue(b.toInt())}';
2727
}
2828
}
2929

@@ -252,8 +252,6 @@ class FormBuilderColorPickerFieldState extends FormBuilderFieldDecorationState<
252252
onColorChanged: _colorChanged,
253253
availableColors: widget.availableColors,
254254
);
255-
default:
256-
throw 'Unknown ColorPickerType';
257255
}
258256
}
259257

0 commit comments

Comments
 (0)