Skip to content

Commit

Permalink
Merge pull request #20 from ekangal/patch-1
Browse files Browse the repository at this point in the history
Added null control for availableColors parameter
  • Loading branch information
mchome authored Apr 17, 2020
2 parents 634e2f5 + 6dabf3b commit b594ad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/block_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class _BlockPickerState extends State<BlockPicker> {
Widget build(BuildContext context) {
return widget.layoutBuilder(
context,
widget.availableColors,
widget.availableColors??_defaultColors,
(Color color, [bool _, Function __]) => widget.itemBuilder(
color, _currentColor.value == color.value, () => changeColor(color)),
);
Expand Down

0 comments on commit b594ad0

Please sign in to comment.