diff --git a/lib/src/block_picker.dart b/lib/src/block_picker.dart index f29dd03..2dc4f77 100644 --- a/lib/src/block_picker.dart +++ b/lib/src/block_picker.dart @@ -121,7 +121,7 @@ class _BlockPickerState extends State { 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)), );