File tree 1 file changed +2
-4
lines changed
packages/flutter_box_transform/lib/src
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -456,14 +456,12 @@ class _TransformableBoxState extends State<TransformableBox> {
456
456
controller.setRect (widget.rect, notify: false , recalculate: false );
457
457
}
458
458
459
- if (oldWidget.rotation != widget.rotation) {
459
+ if (oldWidget.rotation != widget.rotation || widget.rotation != controller.rotation ) {
460
460
controller.setRotation (widget.rotation, notify: false );
461
461
}
462
462
463
- if (oldWidget.bindingStrategy != widget.bindingStrategy ) {
463
+ if (oldWidget.flip != widget.flip || widget.flip != controller.flip ) {
464
464
controller.setBindingStrategy (widget.bindingStrategy, notify: false );
465
- shouldRecalculatePosition = true ;
466
- shouldRecalculateSize = true ;
467
465
}
468
466
469
467
if (oldWidget.flip != widget.flip || widget.flip != controller.flip) {
You can’t perform that action at this time.
0 commit comments