ScrollbarThemeData class

Mixed in types
Annotations

Constructors

ScrollbarThemeData({double? thickness, double? hoveringThickness, Color? backgroundColor, Color? scrollbarColor, Color? scrollbarPressingColor, Radius? radius, Radius? hoveringRadius, double? mainAxisMargin, double? hoveringMainAxisMargin, double? crossAxisMargin, double? hoveringCrossAxisMargin, double? minThumbLength, Color? trackBorderColor, Color? hoveringTrackBorderColor, Duration? animationDuration, Curve? animationCurve})
const
ScrollbarThemeData.standart(ThemeData style)
factory

Properties

animationCurve Curve?
The curve used during the animation. Defaults to ThemeData.animationCurve
final
animationDuration Duration?
The duration of the animation. Defaults to ThemeData.fasterAnimationDuration. To disable the animation, set this to Duration.zero
final
backgroundColor Color?
The background color of the scrollbar when the user is hovering or pressing it. If null, Color(0xFFe9e9e9) is used for light theme and Color(0xFF1b1b1b) is used for dark theme.
final
crossAxisMargin double?
Distance from the scrollbar's side to the nearest edge in logical pixels. Defaults to 0.0
final
hashCode int
The hash code for this object.
no setterinherited
hoveringCrossAxisMargin double?
Distance from the scrollbar's side to the nearest edge in logical pixels when the user is hovering or pressing. Defaults to 2.0
final
hoveringMainAxisMargin double?
Distance from the scrollbar's start and end to the edge of the viewport in logical pixels. It affects the amount of available paint area. Defaults to 0.0
final
hoveringRadius Radius?
The radius of the scrollbar when the user is hovering or pressing. Defaults to Radius.circular(0.0)
final
hoveringThickness double?
Thickness of the scrollbar in its cross-axis in logical pixels when the user is hovering or pressing it. If null, 16.0 is used
final
hoveringTrackBorderColor Color?
Color of the track border when the user is hovering or pressing. Defaults to Colors.transparent
final
mainAxisMargin double?
Distance from the scrollbar's start and end to the edge of the viewport in logical pixels. It affects the amount of available paint area. Defaults to 2.0
final
minThumbLength double?
Sets the preferred smallest size the scrollbar can shrink to when the total scrollable extent is large, the current visible viewport is small, and the viewport is not overscrolled. Defaults to 48.0
final
radius Radius?
The default radius of the scrollbar. Defaults to Radius.circular(100.0)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollbarColor Color?
The color of the scrollbar thumb on its default state. If null, Color(0xFF8c8c8c) is used for light theme and Color(0xFF767676) is used for dark theme.
final
scrollbarPressingColor Color?
The color of the scrollbar thumb when the user is hovering or pressing it. If null, const Color(0xFF5d5d5d) is used for light theme and Color(0xFFa4a4a4) is used for dark theme by default.
final
thickness double?
Thickness of the scrollbar in its cross-axis in logical pixels. If null, 2.0 is used
final
trackBorderColor Color?
Color of the track border. Defaults to Colors.transparent
final

Methods

copyWith(ScrollbarThemeData? style) ScrollbarThemeData
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
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
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited