DesktopScrollbarThemeMode enum

Pilote la colorisation des barres de défilement natives.

Windows uniquement (WebView2/Chromium, via injection CSS ::-webkit-scrollbar). Sans effet sur les autres plateformes, où ce niveau de personnalisation n'existe pas nativement (Android/iOS/macOS masquent ou dessinent leurs propres indicateurs de défilement, voir WebviewSettings.hideNativeScrollbars pour les masquer entièrement).

Inheritance
Available extensions

Values

auto → const DesktopScrollbarThemeMode

Suit automatiquement le thème Flutter courant (Theme.of(context)) : couleurs dérivées de ColorScheme.surface/onSurface/primary, mises à jour dynamiquement si le thème change (ex. bascule clair/sombre).

light → const DesktopScrollbarThemeMode

Palette claire fixe, indépendante du thème Flutter.

dark → const DesktopScrollbarThemeMode

Palette sombre fixe, indépendante du thème Flutter.

custom → const DesktopScrollbarThemeMode

Couleurs entièrement fournies par WebviewSettings.windowsScrollbarTrackColor, WebviewSettings.windowsScrollbarThumbColor et WebviewSettings.windowsScrollbarThumbHoverColor.

hidden → const DesktopScrollbarThemeMode

Masque entièrement les barres de défilement (le contenu reste défilable au clavier/molette/tactile).

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<DesktopScrollbarThemeMode>
A constant List of the values in this enum, in order of their declaration.