scrollbarConfig property
Configuration for the scrollbar appearance in the menu dropdown.
Use ScrollbarConfig to customize the scrollbar's visibility and styling.
If null
, a default scrollbar configuration will be applied.
Examples:
// Basic configuration
scrollbarConfig: ScrollbarConfig(
visible: true,
themeData: ScrollbarThemeData(
thickness: WidgetStateProperty.all(10.0),
thumbColor: WidgetStateProperty.all(Colors.orange),
),
)
// Using presets
scrollbarConfig: ScrollbarConfig.preset(preset: 'thick', color: Colors.blue)
Implementation
final ScrollbarConfig? scrollbarConfig;