FolderViewScrollbarTheme class
Defines the visual appearance of scrollbars in a FolderView
- Annotations
Constructors
- FolderViewScrollbarTheme({required Color thumbColor, required Color trackColor, double thickness = 12.0, double radius = 4.0, bool thumbVisibility = true, double hoverOpacity = 0.8, double nonHoverOpacity = 0.0, Duration hoverAnimationDuration = const Duration(milliseconds: 200), double trackWidth = 16.0, double trackRadius = 8.0, bool trackVisibility = false})
-
Creates a FolderViewScrollbarTheme with the given properties
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- hoverAnimationDuration → Duration
-
The duration of the hover animation
final
- hoverOpacity → double
-
The opacity of the scrollbar when hovering
final
- nonHoverOpacity → double
-
The opacity of the scrollbar when not hovering
final
- radius → double
-
The radius of the scrollbar thumb corners
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thickness → double
-
The thickness of the scrollbar thumb
final
- thumbColor → Color
-
The color of the scrollbar thumb
final
- thumbVisibility → bool
-
Whether the scrollbar thumb is always visible
final
- trackColor → Color
-
The color of the scrollbar track background
final
- trackRadius → double
-
The radius of the scrollbar track corners
final
- trackVisibility → bool
-
Whether the scrollbar track is visible
final
- trackWidth → double
-
The total width of the scrollbar track (including padding)
final
Methods
-
copyWith(
{Color? thumbColor, Color? trackColor, double? thickness, double? radius, bool? thumbVisibility, double? hoverOpacity, double? nonHoverOpacity, Duration? hoverAnimationDuration, double? trackWidth, double? trackRadius, bool? trackVisibility}) → FolderViewScrollbarTheme - Creates a copy of this theme with the given fields replaced with new values
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
lerp(
FolderViewScrollbarTheme? a, FolderViewScrollbarTheme? b, double t) → FolderViewScrollbarTheme - Linearly interpolate between two FolderViewScrollbarThemes
-
lerpDouble(
double a, double b, double t) → double - Linear interpolation helper for doubles