Skip to content

Commit

Permalink
style: fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
deandreamatias committed Dec 19, 2024
1 parent 1a94ab1 commit ad210db
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions lib/form_builder_extra_fields.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library form_builder_extra_fields;

export 'package:dropdown_search/dropdown_search.dart';
export 'package:flutter_rating_bar/flutter_rating_bar.dart';

Expand Down
4 changes: 1 addition & 3 deletions lib/src/fields/form_builder_color_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ extension on Color {
}

return '${leadingHashSign ? '#' : ''}'
'${hexValue(alpha)}${hexValue(red)}${hexValue(green)}${hexValue(blue)}';
'${hexValue(a.toInt())}${hexValue(r.toInt())}${hexValue(g.toInt())}${hexValue(b.toInt())}';
}
}

Expand Down Expand Up @@ -252,8 +252,6 @@ class FormBuilderColorPickerFieldState extends FormBuilderFieldDecorationState<
onColorChanged: _colorChanged,
availableColors: widget.availableColors,
);
default:
throw 'Unknown ColorPickerType';
}
}

Expand Down

0 comments on commit ad210db

Please sign in to comment.