Skip to content

Commit 24b94e0

Browse files
committed
📝 Add docs for hideHandlesWhenNotResizable
1 parent c19eb80 commit 24b94e0

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/handles.mdx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,22 @@ the interactive area is aligned to the center of box corner/side.
3838
);
3939
```
4040

41+
## Handle visibility
42+
43+
By default, handles will be hidden when `resizable` is set to `false`. This can be changed by setting
44+
`hideHandlesWhenNotResizable` to `false`.
45+
46+
```dart title="Showing handles when box is not resizable"
47+
TransformableBox(
48+
rect: rect,
49+
flip: flip,
50+
resizable: false,
51+
hideHandlesWhenNotResizable: false,
52+
onChanged: (event) {...},
53+
contentBuilder: (context, rect, flip) {...},
54+
);
55+
```
56+
4157
## Customizing the default handles
4258

4359
By default, `TransformableBox` uses `DefaultCornerHandle` and `DefaultSideHandle` to build the handles. You can

0 commit comments

Comments
 (0)