scrollBar method
Widget
scrollBar({
- Key? key,
- ScrollController? controller,
- bool? thumbVisibility,
- bool? trackVisibility,
- double? thickness,
- Radius? radius,
- ScrollNotificationPredicate? notificationPredicate,
- bool? interactive,
- ScrollbarOrientation? scrollbarOrientation,
- @Deprecated('''Use ScrollbarThemeData.trackVisibility to resolve based on the current state instead. ''' 'This feature was deprecated after v3.4.0-19.0.pre.') bool? showTrackOnHover,
A material design scroll bar.
Implementation
Widget scrollBar({
Key? key,
ScrollController? controller,
bool? thumbVisibility,
bool? trackVisibility,
double? thickness,
Radius? radius,
ScrollNotificationPredicate? notificationPredicate,
bool? interactive,
ScrollbarOrientation? scrollbarOrientation,
@Deprecated(
'''Use ScrollbarThemeData.trackVisibility to resolve based on the current state instead. '''
'This feature was deprecated after v3.4.0-19.0.pre.',
)
bool? showTrackOnHover,
}) {
return Scrollbar(
key: key,
controller: controller,
thickness: thickness,
radius: radius,
notificationPredicate: notificationPredicate,
interactive: interactive,
scrollbarOrientation: scrollbarOrientation,
thumbVisibility: thumbVisibility,
trackVisibility: trackVisibility,
child: this,
);
}