GlowingOverscrollIndicator class

A visual indication that a scroll view has overscrolled.

A GlowingOverscrollIndicator listens for ScrollNotifications in order to control the overscroll indication. These notifications are typically generated by a ScrollView, such as a ListView or a GridView.

GlowingOverscrollIndicator generates OverscrollIndicatorNotification before showing an overscroll indication. To prevent the indicator from showing the indication, call OverscrollIndicatorNotification.disallowGlow on the notification.

Created automatically by ScrollBehavior.buildViewportChrome on platforms (e.g., Android) that commonly use this type of overscroll indication.

In a MaterialApp, the edge glow color is the ThemeData.accentColor.

Inheritance

Constructors

GlowingOverscrollIndicator({Key key, bool showLeading: true, bool showTrailing: true, @required AxisDirection axisDirection, @required Color color, ScrollNotificationPredicate notificationPredicate: defaultScrollNotificationPredicate, Widget child })
Creates a visual indication that a scroll view has overscrolled. [...]
const

Properties

axis Axis
The axis along which scrolling occurs in the Scrollable whose overscrolls are to be visualized.
read-only
axisDirection AxisDirection
The direction of positive scroll offsets in the Scrollable whose overscrolls are to be visualized.
final
child Widget
The widget below this widget in the tree. [...]
final
color Color
The color of the glow. The alpha channel is ignored.
final
notificationPredicate ScrollNotificationPredicate
A check that specifies whether a ScrollNotification should be handled by this widget. [...]
final
showLeading bool
Whether to show the overscroll glow on the side with negative scroll offsets. [...]
final
showTrailing bool
Whether to show the overscroll glow on the side with positive scroll offsets. [...]
final
hashCode int
The hash code for this object. [...]
read-only, inherited
key Key
Controls how one widget replaces another widget in the tree. [...]
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

createState() → _GlowingOverscrollIndicatorState
Creates the mutable state for this widget at a given location in the tree. [...]
override
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
override
createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree. [...]
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children. [...]
@protected, inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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 toStringDeep. [...]
inherited
toString({DiagnosticLevel minLevel: DiagnosticLevel.debug }) String
Returns 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 ==(dynamic other) bool
The equality operator. [...]
inherited