@@ -211,7 +211,7 @@ class TransformableBox extends StatefulWidget {
211
211
212
212
/// The callback function that is used to resolve the [ResizeMode] based on
213
213
/// the pressed keys on the keyboard.
214
- final ValueGetter <ResizeMode >? resizeModeResolver;
214
+ final ValueGetter <ResizeMode > resizeModeResolver;
215
215
216
216
/// A callback that is called every time the [TransformableBox] is updated.
217
217
/// This is called every time the [TransformableBoxController] mutates the box
@@ -485,7 +485,6 @@ class _TransformableBoxState extends State<TransformableBox> {
485
485
final UIResizeResult result = controller.onResizeUpdate (
486
486
event.localPosition,
487
487
handle,
488
- notify: false ,
489
488
);
490
489
491
490
widget.onChanged? .call (result, event);
@@ -536,7 +535,6 @@ class _TransformableBoxState extends State<TransformableBox> {
536
535
void onDragPointerMove (PointerMoveEvent event) {
537
536
final UIMoveResult result = controller.onDragUpdate (
538
537
event.localPosition,
539
- notify: false ,
540
538
);
541
539
542
540
widget.onChanged? .call (result, event);
@@ -552,12 +550,12 @@ class _TransformableBoxState extends State<TransformableBox> {
552
550
@override
553
551
Widget build (BuildContext context) {
554
552
final Flip flip = controller.flip;
555
- final Rect box = controller.rect;
553
+ final Rect rect = controller.rect;
556
554
557
555
Widget content = Transform .scale (
558
556
scaleX: widget.allowContentFlipping && flip.isHorizontal ? - 1 : 1 ,
559
557
scaleY: widget.allowContentFlipping && flip.isVertical ? - 1 : 1 ,
560
- child: widget.contentBuilder (context, box , flip),
558
+ child: widget.contentBuilder (context, rect , flip),
561
559
);
562
560
563
561
if (controller.movable) {
@@ -572,16 +570,16 @@ class _TransformableBoxState extends State<TransformableBox> {
572
570
}
573
571
574
572
return Positioned .fromRect (
575
- rect: box .inflate (widget.handleAlignment.offset (widget.handleTapSize)),
573
+ rect: rect .inflate (widget.handleAlignment.offset (widget.handleTapSize)),
576
574
child: Stack (
577
575
clipBehavior: Clip .none,
578
576
fit: StackFit .expand,
579
577
children: [
580
578
Positioned (
581
579
left: widget.handleAlignment.offset (widget.handleTapSize),
582
580
top: widget.handleAlignment.offset (widget.handleTapSize),
583
- width: box .width,
584
- height: box .height,
581
+ width: rect .width,
582
+ height: rect .height,
585
583
child: content,
586
584
),
587
585
if (controller.resizable || ! widget.hideHandlesWhenNotResizable)
0 commit comments