scrollable method
Widget
scrollable({
- Key? key,
- Axis scrollDirection = Axis.vertical,
- bool reverse = false,
- bool? primary,
- ScrollPhysics? physics = const ClampingScrollPhysics(),
- ScrollController? controller,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- EdgeInsetsGeometry? padding,
滚动视图
Implementation
Widget scrollable({
Key? key,
Axis scrollDirection = Axis.vertical,
bool reverse = false,
bool? primary,
ScrollPhysics? physics = const ClampingScrollPhysics(),
ScrollController? controller,
DragStartBehavior dragStartBehavior = DragStartBehavior.start,
EdgeInsetsGeometry? padding,
}) =>
SingleChildScrollView(
key: key,
scrollDirection: scrollDirection,
reverse: reverse,
primary: primary,
physics: physics,
controller: controller,
dragStartBehavior: dragStartBehavior,
padding: padding,
child: this,
);