Stac Visibility allows you to build the Flutter Visibility widget using JSON. To know more about the Visibility widget in Flutter, refer to the official documentation.Documentation Index
Fetch the complete documentation index at: https://docs.stac.dev/llms.txt
Use this file to discover all available pages before exploring further.
Properties
| Property | Type | Description |
|---|---|---|
child | StacWidget | The widget to be displayed when visible is true. |
replacement | StacWidget | The widget to display when visible is false. Defaults to an empty widget (SizedBox.shrink). |
visible | bool | Whether the child is visible. Defaults to true. |
maintainState | bool | Whether to maintain the state of the widget when it is hidden. Defaults to false. |
maintainAnimation | bool | Whether to maintain the animation of the widget when it is hidden. Defaults to false. |
maintainSize | bool | Whether to maintain the size of the widget when it is hidden. Defaults to false. |
maintainSemantics | bool | Whether to maintain the semantics of the widget when it is hidden. Defaults to false. |
maintainInteractivity | bool | Whether to maintain the interactivity of the widget when it is hidden. Defaults to false. |
Example
Example 1: Basic Visibility
- Dart
- JSON
- Preview