ScrollbarThemeData class
Defines default property values for descendant MacosScrollbar widgets.
Descendant widgets obtain the current ScrollbarThemeData object with
ScrollbarTheme.of(context)
. Instances of ScrollbarThemeData can be customized
with ScrollbarThemeData.copyWith.
Typically the ScrollbarThemeData of a ScrollbarTheme is specified as part of the overall MacosTheme with MacosThemeData.scrollbarTheme.
All ScrollbarThemeData properties are null
by default. When null, the MacosScrollbar
computes its own default values.
See also:
- MacosThemeData, which describes the overall theme information for the application.
- Mixed in types
Constructors
- ScrollbarThemeData({double? thickness, double? hoveringThickness, bool? showTrackOnHover, bool? isAlwaysShown, Radius? radius, Color? thumbColor, Color? hoveringThumbColor, Color? draggingThumbColor, Color? trackColor, Color? hoveringTrackColor, Color? trackBorderColor, Color? hoveringTrackBorderColor, double? crossAxisMargin, double? mainAxisMargin, double? minThumbLength, bool? interactive})
-
Creates a theme that can be used for MacosThemeData.scrollbarTheme.
const
Properties
- crossAxisMargin → double?
-
Overrides the default value of the ScrollbarPainter.crossAxisMargin
property in all descendant MacosScrollbar widgets.
final
- draggingThumbColor → Color?
-
Overrides the default Color of the MacosScrollbar thumb in all descendant
MacosScrollbar widgets when dragging is active.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- hoveringThickness → double?
-
Overrides the default value of MacosScrollbar.hoverThickness in all
descendant MacosScrollbar widgtes when hovering is active.
final
- hoveringThumbColor → Color?
-
Overrides the default Color of the MacosScrollbar thumb in all descendant
MacosScrollbar widgets when hovering is active.
final
- hoveringTrackBorderColor → Color?
-
Overrides the default Color of the MacosScrollbar track border when
showTrackOnHover is true in all descendant MacosScrollbar widgets
when hovering is active.
final
- hoveringTrackColor → Color?
-
Overrides the default Color of the MacosScrollbar track when
showTrackOnHover is true in all descendant MacosScrollbar widgets
when hovering is active.
final
- interactive → bool?
-
Overrides the default value of MacosScrollbar.interactive in all
descendant MacosScrollbar widgets.
final
- isAlwaysShown → bool?
-
Overrides the default value of MacosScrollbar.isAlwaysShown in all
descendant MacosScrollbar widgets.
final
- mainAxisMargin → double?
-
Overrides the default value of the ScrollbarPainter.mainAxisMargin
property in all descendant MacosScrollbar widgets.
final
- minThumbLength → double?
-
Overrides the default value of the ScrollbarPainter.minLength
property in all descendant MacosScrollbar widgets.
final
- radius → Radius?
-
Overrides the default value of MacosScrollbar.radius in all
descendant widgets.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showTrackOnHover → bool?
-
Overrides the default value of MacosScrollbar.showTrackOnHover in all
descendant MacosScrollbar widgets.
final
- thickness → double?
-
Overrides the default value of MacosScrollbar.thickness in all
descendant MacosScrollbar widgets.
final
- thumbColor → Color?
-
Overrides the default Color of the MacosScrollbar thumb in all descendant
MacosScrollbar widgets.
final
- trackBorderColor → Color?
-
Overrides the default Color of the MacosScrollbar track border when
showTrackOnHover is true in all descendant MacosScrollbar widgets.
final
- trackColor → Color?
-
Overrides the default Color of the MacosScrollbar track when
showTrackOnHover is true in all descendant MacosScrollbar widgets.
final
Methods
-
copyWith(
{double? thickness, double? hoveringThickness, bool? showTrackOnHover, bool? isAlwaysShown, bool? interactive, Radius? radius, Color? thumbColor, Color? hoveringThumbColor, Color? draggingThumbColor, Color? trackColor, Color? hoveringTrackColor, Color? trackBorderColor, Color? hoveringTrackBorderColor, double? crossAxisMargin, double? mainAxisMargin, double? minThumbLength}) → ScrollbarThemeData - Creates a copy of this object with the given fields replaced with the new values.
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
merge(
ScrollbarThemeData? other) → ScrollbarThemeData -
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.
override
Static Methods
-
lerp(
ScrollbarThemeData? a, ScrollbarThemeData? b, double t) → ScrollbarThemeData - Linearly interpolate between two Scrollbar themes.