ExtendedScrollbar class

An extended Scrollbar. This widget uses ScrollbarTheme to enrich builtin Scrollbar.

Inheritance

Constructors

ExtendedScrollbar({Key? key, required Widget child, ScrollController? controller, bool? isAlwaysShown, bool? trackVisibility, bool? showTrackOnHover, double? hoverThickness, double? thickness, Radius? radius, bool? interactive, ScrollNotificationPredicate? notificationPredicate, ScrollbarOrientation? scrollbarOrientation, MaterialStateProperty<Color?>? thumbColor, MaterialStateProperty<Color?>? trackColor, MaterialStateProperty<Color?>? trackBorderColor, double? crossAxisMargin, double? mainAxisMargin, double? minThumbLength, EdgeInsets? extraMargin})
const

Properties

child Widget
Mirrors to Scrollbar.child.
final
controller ScrollController?
Mirrors to Scrollbar.controller.
final
crossAxisMargin double?
Mirrors to ScrollbarThemeData.crossAxisMargin.
final
extraMargin EdgeInsets?
The extra margin for scrollbar, defaults to EdgeInsets.zero.
final
hashCode int
The hash code for this object.
no setterinherited
hoverThickness double?
Mirrors to Scrollbar.hoverThickness.
final
interactive bool?
Mirrors to Scrollbar.interactive.
final
isAlwaysShown bool?
Mirrors to Scrollbar.isAlwaysShown.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
mainAxisMargin double?
Mirrors to ScrollbarThemeData.mainAxisMargin.
final
minThumbLength double?
Mirrors to ScrollbarThemeData.minThumbLength.
final
notificationPredicate ScrollNotificationPredicate?
Mirrors to Scrollbar.notificationPredicate.
final
radius Radius?
Mirrors to Scrollbar.radius.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollbarOrientation ScrollbarOrientation?
Mirrors to Scrollbar.scrollbarOrientation.
final
showTrackOnHover bool?
Mirrors to Scrollbar.showTrackOnHover.
final
thickness double?
Mirrors to Scrollbar.thickness.
final
thumbColor MaterialStateProperty<Color?>?
Mirrors to ScrollbarThemeData.thumbColor.
final
trackBorderColor MaterialStateProperty<Color?>?
Mirrors to ScrollbarThemeData.trackBorderColor.
final
trackColor MaterialStateProperty<Color?>?
Mirrors to ScrollbarThemeData.trackColor.
final
trackVisibility bool?
Mirrors to Scrollbar.trackVisibility.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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