The Stac Hero allows you to build a Flutter Hero widget using JSON. It enables hero animations between routes by tagging widgets with the same tag. To know more about the Hero 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 |
|---|---|---|
| tag | String | Required. The hero tag used to match heroes across routes. |
| child | StacWidget | Required. The widget subtree for this hero. |
| createRectTween | StacWidget | Optional rectangle tween configuration for the hero animation. |
| flightShuttleBuilder | StacWidget | Optional widget used as the in-flight shuttle during the hero animation. |
| placeholderBuilder | StacWidget | Optional placeholder widget displayed while the destination hero builds. |
| transitionOnUserGestures | bool | Whether the hero should participate in a user gesture driven transition. |
Example
- Dart
- JSON
- Preview