Class ListView
Inheritance
ListView
Inherited Members
Namespace: Unity.UIWidgets.widgets
Syntax
public class ListView : BoxScrollView
Constructors
ListView(Key, Axis, Boolean, ScrollController, Nullable<Boolean>, ScrollPhysics, Boolean, EdgeInsets, Nullable<Single>, Boolean, Boolean, Nullable<Single>, List<Widget>, DragStartBehavior)
Declaration
public ListView(Key key = null, Axis scrollDirection = Axis.vertical, bool reverse = false, ScrollController controller = null, bool? primary = default(bool? ), ScrollPhysics physics = null, bool shrinkWrap = false, EdgeInsets padding = null, float? itemExtent = default(float? ), bool addAutomaticKeepAlives = true, bool addRepaintBoundaries = true, float? cacheExtent = default(float? ), List<Widget> children = null, DragStartBehavior dragStartBehavior = DragStartBehavior.start)
Parameters
| Type | Name | Description |
|---|---|---|
| Key | key | |
| Axis | scrollDirection | |
| Boolean | reverse | |
| ScrollController | controller | |
| Nullable<Boolean> | primary | |
| ScrollPhysics | physics | |
| Boolean | shrinkWrap | |
| EdgeInsets | padding | |
| Nullable<Single> | itemExtent | |
| Boolean | addAutomaticKeepAlives | |
| Boolean | addRepaintBoundaries | |
| Nullable<Single> | cacheExtent | |
| List<Widget> | children | |
| DragStartBehavior | dragStartBehavior |
Fields
childrenDelegate
Declaration
public readonly SliverChildDelegate childrenDelegate
Field Value
| Type | Description |
|---|---|
| SliverChildDelegate |
itemExtent
Declaration
public readonly float? itemExtent
Field Value
| Type | Description |
|---|---|
| Nullable<Single> |
Methods
buildChildLayout(BuildContext)
Declaration
protected override Widget buildChildLayout(BuildContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| BuildContext | context |
Returns
| Type | Description |
|---|---|
| Widget |
Overrides
builder(Key, Axis, Boolean, ScrollController, Nullable<Boolean>, ScrollPhysics, Boolean, EdgeInsets, Nullable<Single>, IndexedWidgetBuilder, Nullable<Int32>, Boolean, Boolean, Nullable<Single>, DragStartBehavior)
Declaration
public static ListView builder(Key key = null, Axis scrollDirection = Axis.vertical, bool reverse = false, ScrollController controller = null, bool? primary = default(bool? ), ScrollPhysics physics = null, bool shrinkWrap = false, EdgeInsets padding = null, float? itemExtent = default(float? ), IndexedWidgetBuilder itemBuilder = null, int? itemCount = default(int? ), bool addAutomaticKeepAlives = true, bool addRepaintBoundaries = true, float? cacheExtent = default(float? ), DragStartBehavior dragStartBehavior = DragStartBehavior.start)
Parameters
| Type | Name | Description |
|---|---|---|
| Key | key | |
| Axis | scrollDirection | |
| Boolean | reverse | |
| ScrollController | controller | |
| Nullable<Boolean> | primary | |
| ScrollPhysics | physics | |
| Boolean | shrinkWrap | |
| EdgeInsets | padding | |
| Nullable<Single> | itemExtent | |
| IndexedWidgetBuilder | itemBuilder | |
| Nullable<Int32> | itemCount | |
| Boolean | addAutomaticKeepAlives | |
| Boolean | addRepaintBoundaries | |
| Nullable<Single> | cacheExtent | |
| DragStartBehavior | dragStartBehavior |
Returns
| Type | Description |
|---|---|
| ListView |
custom(Key, Axis, Boolean, ScrollController, Nullable<Boolean>, ScrollPhysics, Boolean, EdgeInsets, Nullable<Single>, SliverChildDelegate, Nullable<Single>)
Declaration
public static ListView custom(Key key = null, Axis scrollDirection = Axis.vertical, bool reverse = false, ScrollController controller = null, bool? primary = default(bool? ), ScrollPhysics physics = null, bool shrinkWrap = false, EdgeInsets padding = null, float? itemExtent = default(float? ), SliverChildDelegate childrenDelegate = null, float? cacheExtent = default(float? ))
Parameters
| Type | Name | Description |
|---|---|---|
| Key | key | |
| Axis | scrollDirection | |
| Boolean | reverse | |
| ScrollController | controller | |
| Nullable<Boolean> | primary | |
| ScrollPhysics | physics | |
| Boolean | shrinkWrap | |
| EdgeInsets | padding | |
| Nullable<Single> | itemExtent | |
| SliverChildDelegate | childrenDelegate | |
| Nullable<Single> | cacheExtent |
Returns
| Type | Description |
|---|---|
| ListView |
debugFillProperties(DiagnosticPropertiesBuilder)
Declaration
public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
Parameters
| Type | Name | Description |
|---|---|---|
| DiagnosticPropertiesBuilder | properties |
Overrides
seperated(Key, Axis, Boolean, ScrollController, Nullable<Boolean>, ScrollPhysics, Boolean, EdgeInsets, IndexedWidgetBuilder, IndexedWidgetBuilder, Int32, Boolean, Boolean, Nullable<Single>)
Declaration
public static ListView seperated(Key key = null, Axis scrollDirection = Axis.vertical, bool reverse = false, ScrollController controller = null, bool? primary = default(bool? ), ScrollPhysics physics = null, bool shrinkWrap = false, EdgeInsets padding = null, IndexedWidgetBuilder itemBuilder = null, IndexedWidgetBuilder separatorBuilder = null, int itemCount = 0, bool addAutomaticKeepAlives = true, bool addRepaintBoundaries = true, float? cacheExtent = default(float? ))
Parameters
| Type | Name | Description |
|---|---|---|
| Key | key | |
| Axis | scrollDirection | |
| Boolean | reverse | |
| ScrollController | controller | |
| Nullable<Boolean> | primary | |
| ScrollPhysics | physics | |
| Boolean | shrinkWrap | |
| EdgeInsets | padding | |
| IndexedWidgetBuilder | itemBuilder | |
| IndexedWidgetBuilder | separatorBuilder | |
| Int32 | itemCount | |
| Boolean | addAutomaticKeepAlives | |
| Boolean | addRepaintBoundaries | |
| Nullable<Single> | cacheExtent |
Returns
| Type | Description |
|---|---|
| ListView |