scrollbarTheme method
Implementation
ScrollbarThemeData scrollbarTheme(ColorScheme colors) {
return ScrollbarThemeData(
interactive: true,
thumbVisibility: WidgetStateProperty.resolveWith<bool>((states) => states.contains(WidgetState.hovered)),
trackVisibility: const WidgetStatePropertyAll(false),
radius: const Radius.circular(12.0),
crossAxisMargin: -2,
thickness: WidgetStateProperty.resolveWith<double?>((states) => states.contains(WidgetState.hovered) ? 6.0 : 5.0),
thumbColor: WidgetStateProperty.resolveWith<Color?>(
(states) => states.contains(WidgetState.hovered) ? colors.outlineVariant : colors.outline,
),
);
}