File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed
box_transform/lib/src/resizers
flutter_box_transform/lib/src Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,8 @@ import '../geometry.dart';
77import '../helpers.dart' ;
88
99part 'freeform_resizing.dart' ;
10-
1110part 'scale_resizing.dart' ;
12-
1311part 'symmetric_resizing.dart' ;
14-
1512part 'symmetric_scale_resizing.dart' ;
1613
1714/// An abstract class the provides a common interface for all resize modes.
Original file line number Diff line number Diff line change @@ -43,8 +43,11 @@ final class ScaleResizer extends Resizer {
4343 // can't flip it back again. This means that the box might be invalid
4444 // in the first place or something catastrophic happened!!! Contact
4545 // the package author if this happens.
46- return (rect: initialRect,largest: clampingRect, hasValidFlip: false );
47- throw StateError ('Box found to be invalid more than once!' );
46+ return (
47+ rect: initialRect,
48+ largest: result.largest,
49+ hasValidFlip: false
50+ );
4851 }
4952
5053 return newResult;
Original file line number Diff line number Diff line change @@ -522,7 +522,8 @@ class _TransformableBoxState extends State<TransformableBox> {
522522 key: ValueKey (handle),
523523 handlePosition: handle,
524524 handleTapSize: widget.handleTapSize,
525- enabled: widget.resizable && widget.enabledHandles.contains (handle),
525+ enabled:
526+ widget.resizable && widget.enabledHandles.contains (handle),
526527 onPanStart: (event) => onHandlePanStart (event, handle),
527528 onPanUpdate: (event) => onHandlePanUpdate (event, handle),
528529 onPanEnd: (event) => onHandlePanEnd (event, handle),
@@ -535,7 +536,8 @@ class _TransformableBoxState extends State<TransformableBox> {
535536 key: ValueKey (handle),
536537 handlePosition: handle,
537538 handleTapSize: widget.handleTapSize,
538- enabled: widget.resizable && widget.enabledHandles.contains (handle),
539+ enabled:
540+ widget.resizable && widget.enabledHandles.contains (handle),
539541 onPanStart: (event) => onHandlePanStart (event, handle),
540542 onPanUpdate: (event) => onHandlePanUpdate (event, handle),
541543 onPanEnd: (event) => onHandlePanEnd (event, handle),
You can’t perform that action at this time.
0 commit comments