themeData property

ScrollbarThemeData? themeData
final

The scrollbar theme data that defines the appearance of the scrollbar.

This provides access to all Flutter's built-in scrollbar customization options:

  • thickness: The width of the scrollbar track and thumb
  • thumbColor: The color of the scrollbar thumb (the draggable part)
  • trackColor: The color of the scrollbar track (background)
  • radius: The radius of the scrollbar thumb corners
  • thumbVisibility: Whether the thumb should always be visible
  • trackVisibility: Whether the track should always be visible
  • interactive: Whether the scrollbar can be dragged
  • mainAxisMargin: Margin along the main axis
  • crossAxisMargin: Margin along the cross axis

If null, default Flutter scrollbar styling will be applied.

Implementation

final ScrollbarThemeData? themeData;