Inheritance
System.Object
ListView
public class ListView : BoxScrollView
Constructors
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.down)
Parameters
Type |
Name |
Description |
Key |
key |
|
Axis |
scrollDirection |
|
System.Boolean |
reverse |
|
ScrollController |
controller |
|
System.Nullable<System.Boolean> |
primary |
|
ScrollPhysics |
physics |
|
System.Boolean |
shrinkWrap |
|
EdgeInsets |
padding |
|
System.Nullable<System.Single> |
itemExtent |
|
System.Boolean |
addAutomaticKeepAlives |
|
System.Boolean |
addRepaintBoundaries |
|
System.Nullable<System.Single> |
cacheExtent |
|
System.Collections.Generic.List<Widget> |
children |
|
DragStartBehavior |
dragStartBehavior |
|
Fields
Declaration
public readonly SliverChildDelegate childrenDelegate
Field Value
Declaration
public readonly float? itemExtent
Field Value
Type |
Description |
System.Nullable<System.Single> |
|
Methods
buildChildLayout(BuildContext)
Declaration
protected override Widget buildChildLayout(BuildContext context)
Parameters
Returns
Overrides
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.down)
Parameters
Type |
Name |
Description |
Key |
key |
|
Axis |
scrollDirection |
|
System.Boolean |
reverse |
|
ScrollController |
controller |
|
System.Nullable<System.Boolean> |
primary |
|
ScrollPhysics |
physics |
|
System.Boolean |
shrinkWrap |
|
EdgeInsets |
padding |
|
System.Nullable<System.Single> |
itemExtent |
|
IndexedWidgetBuilder |
itemBuilder |
|
System.Nullable<System.Int32> |
itemCount |
|
System.Boolean |
addAutomaticKeepAlives |
|
System.Boolean |
addRepaintBoundaries |
|
System.Nullable<System.Single> |
cacheExtent |
|
DragStartBehavior |
dragStartBehavior |
|
Returns
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 |
|
System.Boolean |
reverse |
|
ScrollController |
controller |
|
System.Nullable<System.Boolean> |
primary |
|
ScrollPhysics |
physics |
|
System.Boolean |
shrinkWrap |
|
EdgeInsets |
padding |
|
System.Nullable<System.Single> |
itemExtent |
|
SliverChildDelegate |
childrenDelegate |
|
System.Nullable<System.Single> |
cacheExtent |
|
Returns
Declaration
public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
Parameters
Overrides
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
Returns