The Stac ListView allows you to build a Flutter ListView widget using JSON. To know more about the listview 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 |
|---|---|---|
| scrollDirection | StacAxis | The Axis along which the scroll view’s offset increases. |
| reverse | bool | Whether the scroll view scrolls in the reading direction. |
| primary | bool | Whether this is the primary scroll view. |
| physics | StacScrollPhysics | How the scroll view should respond to user input. |
| shrinkWrap | bool | Whether the extent of the scroll view in the scrollDirection should be determined by the contents being viewed. |
| padding | StacEdgeInsets | The amount of space by which to inset the children. |
| addAutomaticKeepAlives | bool | Determines whether the children should be automatically kept alive (cached) when they are no longer visible, preserving their state. |
| addRepaintBoundaries | bool | Determines whether each child widget is wrapped in a RepaintBoundary to optimize rendering by reducing unnecessary repaints. |
| addSemanticIndexes | bool | Determines whether semantic indexes are assigned to the children, enabling accessibility tools to understand the order and structure of the list items. |
| cacheExtent | double | The viewport has an area before and after the visible area to cache items that are about to become visible when the user scrolls. |
| children | List<StacWidget> | The widgets below this widget in the tree. |
| separator | StacWidget | Defines a widget, to display between each pair of list items. |
| semanticChildCount | int | The number of children that will contribute semantic information. |
| dragStartBehavior | StacDragStartBehavior | Determines the way that drag start behavior is handled. |
| keyboardDismissBehavior | StacScrollViewKeyboardDismissBehavior | Defines how this ScrollView will dismiss the keyboard automatically. |
| restorationId | String | Restoration ID to save and restore the scroll offset of the scrollable. |
| clipBehavior | StacClip | The content will be clipped (or not) according to this option. |
Example
- Dart
- JSON
- Preview