FadingEdgeScrollView class
Flutter widget for displaying fading edge at start/end of scroll views
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- FadingEdgeScrollView
Constructors
- FadingEdgeScrollView.fromAnimatedList({Key? key, required AnimatedList child, double gradientFractionOnStart = 0.1, double gradientFractionOnEnd = 0.1, bool shouldDisposeScrollController = false})
-
Constructor for creating FadingEdgeScrollView with AnimatedList as child
child must have AnimatedList.controller set
factory
- FadingEdgeScrollView.fromListWheelScrollView({Key? key, required ListWheelScrollView child, double gradientFractionOnStart = 0.1, double gradientFractionOnEnd = 0.1, bool shouldDisposeScrollController = false})
-
Constructor for creating FadingEdgeScrollView with ScrollView as child
child must have ScrollView.controller set
factory
- FadingEdgeScrollView.fromPageView({Key? key, required PageView child, double gradientFractionOnStart = 0.1, double gradientFractionOnEnd = 0.1, bool shouldDisposeScrollController = false})
-
Constructor for creating FadingEdgeScrollView with PageView as child
child must have PageView.controller set
factory
- FadingEdgeScrollView.fromScrollView({Key? key, required ScrollView child, double gradientFractionOnStart = 0.1, double gradientFractionOnEnd = 0.1, bool shouldDisposeScrollController = false})
-
Constructor for creating FadingEdgeScrollView with ScrollView as child
child must have ScrollView.controller set
factory
- FadingEdgeScrollView.fromSingleChildScrollView({Key? key, required SingleChildScrollView child, double gradientFractionOnStart = 0.1, double gradientFractionOnEnd = 0.1, bool shouldDisposeScrollController = false})
-
Constructor for creating FadingEdgeScrollView with SingleChildScrollView as child
child must have SingleChildScrollView.controller set
factory
Properties
- child → Widget
-
child widget
final
- gradientFractionOnEnd → double
-
what part of screen on end half should be covered by fading edge gradient
gradientFractionOnEnd must be 0 <= gradientFractionOnEnd <= 1
0 means no gradient,
1 means gradients on start half of widget fully covers it
final
- gradientFractionOnStart → double
-
what part of screen on start half should be covered by fading edge gradient
gradientFractionOnStart must be 0 <= gradientFractionOnStart <= 1
0 means no gradient,
1 means gradients on start half of widget fully covers it
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- reverse → bool
-
Whether the scroll view scrolls in the reading direction.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollController → ScrollController
-
scroll controller of child widget
final
- scrollDirection → Axis
-
The axis along which child view scrolls
final
- shouldDisposeScrollController → bool
-
set to true if you want scrollController passed to widget to be disposed when widget's state is disposed
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _FadingEdgeScrollViewState -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited