folderViewThumbTheme function

ScrollbarThemeData folderViewThumbTheme(
  1. BuildContext context,
  2. FolderViewScrollbarTheme theme
)

The ScrollbarThemeData a FolderView bar paints its thumb with.

Implementation

ScrollbarThemeData folderViewThumbTheme(
  BuildContext context,
  FolderViewScrollbarTheme theme,
) {
  final metrics = _thumbMetrics(context, theme);
  return ScrollbarThemeData(
    thumbColor: WidgetStateProperty.all(theme.thumbColor),
    radius: Radius.circular(theme.radius),
    thickness: WidgetStateProperty.all(metrics.thickness),
    crossAxisMargin: metrics.margin,
  );
}