We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 128a4ff + dc6a3af commit 561164fCopy full SHA for 561164f
packages/palette_generator/example/image_colors/lib/main.dart
@@ -120,7 +120,7 @@ class _ImageColorsState extends State<ImageColors> {
120
void _onPanEnd(DragEndDetails details) async {
121
Rect newRegion =
122
(Offset.zero & imageKey.currentContext.size).intersect(dragRegion);
123
- if (newRegion.size == Size.zero) {
+ if (newRegion.size.width < 4 && newRegion.size.width < 4) {
124
newRegion = Offset.zero & imageKey.currentContext.size;
125
}
126
await _updatePaletteGenerator(newRegion);
@@ -302,4 +302,3 @@ class PaletteSwatch extends StatelessWidget {
302
return swatch;
303
304
305
-
0 commit comments