EzScrollView constructor

const EzScrollView({
  1. Key? key,
  2. Axis scrollDirection = Axis.vertical,
  3. bool reverseHands = false,
  4. bool reverse = false,
  5. EdgeInsetsGeometry? padding,
  6. bool? primary,
  7. ScrollPhysics? physics = const BouncingScrollPhysics(),
  8. ScrollController? controller,
  9. Widget? child,
  10. Clip clipBehavior = Clip.hardEdge,
  11. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  12. String? restorationId,
  13. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  14. MainAxisSize mainAxisSize = MainAxisSize.max,
  15. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
  16. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  17. TextDirection? textDirection,
  18. TextBaseline? textBaseline,
  19. VerticalDirection verticalDirection = VerticalDirection.down,
  20. List<Widget>? children,
})

SingleChildScrollView wrapper Prefers the children list rather than child Widget Behaves like a standard wrapper if child is provided If children are provided... Dynamically switches the child widget between an EzRow and Column based on scrollDirection

Implementation

const EzScrollView({
  // SingleChildScrollView
  this.key,
  this.scrollDirection = Axis.vertical,
  this.reverseHands = false,
  this.reverse = false,
  this.padding,
  this.primary,
  this.physics = const BouncingScrollPhysics(),
  this.controller,
  this.child,
  this.clipBehavior = Clip.hardEdge,
  this.dragStartBehavior = DragStartBehavior.start,
  this.restorationId,
  this.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,

  // EzRow/Column
  this.mainAxisSize = MainAxisSize.max,
  this.mainAxisAlignment = MainAxisAlignment.start,
  this.crossAxisAlignment = CrossAxisAlignment.center,
  this.textDirection,
  this.textBaseline,
  this.verticalDirection = VerticalDirection.down,
  this.children,
}) : assert(child != null || children != null);