FlutterScrollDirection enum
A widget that displays a scrollable list of items with dynamic heights.
This widget is designed to provide a customizable list view with optional item separators, allowing developers to build lists in both horizontal and vertical directions.
Usage
To create a FlutterListView
, you need to provide:
items
: A list of items to be displayed.itemBuilder
: A function that builds a widget for each item based on its context and item data.
Additionally, you can customize the list view with:
padding
: Padding applied to the entire list view.separatorBuilder
: A function that builds separators between items.controller
: An optional controller for the scroll view.scrollDirection
: The direction in which the list view scrolls (horizontal
orvertical
).physics
: Optional physics for the scroll view.- FlutterScrollDirection, an enum to define scroll direction for the list view.
Values
- horizontal → const FlutterScrollDirection
- vertical → const FlutterScrollDirection
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
FlutterScrollDirection> - A constant List of the values in this enum, in order of their declaration.