scrollable method

Widget scrollable({
  1. Key? key,
  2. Axis scrollDirection = Axis.vertical,
  3. bool reverse = false,
  4. bool? primary,
  5. ScrollPhysics? physics = const ClampingScrollPhysics(),
  6. ScrollController? controller,
  7. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  8. 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,
    );