Inheritance
System.Object
ScrollView
public abstract class ScrollView : StatelessWidget
Constructors
Declaration
protected ScrollView(Key key = null, Axis scrollDirection = Axis.vertical, bool reverse = false, ScrollController controller = null, bool? primary = default(bool? ), ScrollPhysics physics = null, bool shrinkWrap = false, Key center = null, float anchor = 0F, 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 |
|
Key |
center |
|
System.Single |
anchor |
|
System.Nullable<System.Single> |
cacheExtent |
|
DragStartBehavior |
dragStartBehavior |
|
Fields
Declaration
public readonly float anchor
Field Value
Type |
Description |
System.Single |
|
Declaration
public readonly float? cacheExtent
Field Value
Type |
Description |
System.Nullable<System.Single> |
|
Declaration
public readonly Key center
Field Value
Declaration
public readonly ScrollController controller
Field Value
Declaration
public readonly DragStartBehavior dragStartBehavior
Field Value
Declaration
public readonly ScrollPhysics physics
Field Value
Declaration
public readonly bool primary
Field Value
Type |
Description |
System.Boolean |
|
Declaration
public readonly bool reverse
Field Value
Type |
Description |
System.Boolean |
|
Declaration
public readonly Axis scrollDirection
Field Value
Declaration
public readonly bool shrinkWrap
Field Value
Type |
Description |
System.Boolean |
|
Methods
build(BuildContext)
Declaration
public override Widget build(BuildContext context)
Parameters
Returns
Overrides
buildSlivers(BuildContext)
Declaration
protected abstract List<Widget> buildSlivers(BuildContext context)
Parameters
Returns
Type |
Description |
System.Collections.Generic.List<Widget> |
|
buildViewport(BuildContext, ViewportOffset, AxisDirection, List<Widget>)
Declaration
protected virtual Widget buildViewport(BuildContext context, ViewportOffset offset, AxisDirection axisDirection, List<Widget> slivers)
Parameters
Returns
Declaration
public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
Parameters
Overrides
getDirection(BuildContext)
Declaration
protected AxisDirection getDirection(BuildContext context)
Parameters
Returns