@@ -41,20 +41,46 @@ the interactive area is aligned to the center of box corner/side.
4141
4242## Handle visibility
4343
44- By default, handles will be hidden when ` resizable ` is set to ` false ` . This can be changed by setting
45- ` hideHandlesWhenNotResizable ` to ` false ` .
44+ By default, handles will be hidden when ` resizable ` is set to ` false ` .
4645
47- ``` dart title="Showing handles when box is not resizable "
46+ ``` dart title="Using the resizable boolean to hide handles "
4847 TransformableBox(
4948 rect: rect,
5049 flip: flip,
5150 resizable: false,
52- hideHandlesWhenNotResizable: false,
5351 onChanged: (event) {...},
5452 contentBuilder: (context, rect, flip) {...},
5553 );
5654```
5755
56+ You can alternatively selectively hide handles by providing your own ` visibleHandles ` set.
57+
58+ ``` dart title="Using the visibleHandles set to hide handles"
59+ TransformableBox(
60+ rect: rect,
61+ flip: flip,
62+ visibleHandles: {HandlePosition.right, HandlePosition.bottom, HandlePosition.bottomRight},
63+ onChanged: (event) {...},
64+ contentBuilder: (context, rect, flip) {...},
65+ );
66+ ```
67+
68+ ## Handle Interaction
69+
70+ You can selectively disable handles but keep them visible at the same time by providing your own ` enabledHandles ` set.
71+
72+ ``` dart title="Using the enabledHandles set to disable handles"
73+ TransformableBox(
74+ rect: rect,
75+ flip: flip,
76+ enabledHandles: {HandlePosition.right, HandlePosition.bottom, HandlePosition.bottomRight},
77+ onChanged: (event) {...},
78+ contentBuilder: (context, rect, flip) {...},
79+ );
80+ ```
81+
82+ <Info >You can provide an empty set to disable all the handles but keep them visible and vice versa.</Info >
83+
5884## Customizing the default handles
5985
6086By default, ` TransformableBox ` uses ` DefaultCornerHandle ` and ` DefaultSideHandle ` to build the handles. You can
0 commit comments