Skip to content

Commit

Permalink
Add PaletteGenerator package.
Browse files Browse the repository at this point in the history
  • Loading branch information
gspencergoog committed Jul 14, 2018
1 parent a77f827 commit e335cbf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class _ImageColorsState extends State<ImageColors> {
void _onPanEnd(DragEndDetails details) async {
Rect newRegion =
(Offset.zero & imageKey.currentContext.size).intersect(dragRegion);
if (newRegion.size == Size.zero) {
if (newRegion.size.width < 4 && newRegion.size.width < 4) {
newRegion = Offset.zero & imageKey.currentContext.size;
}
await _updatePaletteGenerator(newRegion);
Expand Down

0 comments on commit e335cbf

Please sign in to comment.