CupertinoScrollbarModifier constructor
const
CupertinoScrollbarModifier({
- Key? key,
- Widget? child,
- ScrollController? controller,
- ScrollNotificationPredicate notificationPredicate = defaultScrollNotificationPredicate,
- double thickness = CupertinoScrollbar.defaultThickness,
- double thicknessWhileDragging = CupertinoScrollbar.defaultThicknessWhileDragging,
- Radius radius = CupertinoScrollbar.defaultRadius,
- Radius radiusWhileDragging = CupertinoScrollbar.defaultRadiusWhileDragging,
- ScrollbarOrientation? scrollbarOrientation,
- @Deprecated('Use thumbVisibility instead. ' 'This feature was deprecated after v2.9.0-1.0.pre.') bool? isAlwaysShown,
Creates an iOS style scrollbar that wraps the given child
.
The child
should be a source of ScrollNotification notifications,
typically a Scrollable widget.
Implementation
const CupertinoScrollbarModifier({
super.key,
super.child,
super.controller,
super.notificationPredicate,
double super.thickness = CupertinoScrollbar.defaultThickness,
this.thicknessWhileDragging = CupertinoScrollbar.defaultThicknessWhileDragging,
Radius super.radius = CupertinoScrollbar.defaultRadius,
this.radiusWhileDragging = CupertinoScrollbar.defaultRadiusWhileDragging,
super.scrollbarOrientation,
@Deprecated(
'Use thumbVisibility instead. '
'This feature was deprecated after v2.9.0-1.0.pre.',
)
bool? isAlwaysShown,
});