EzScrollView constructor
const
EzScrollView({
- Key? key,
- Axis scrollDirection = Axis.vertical,
- bool reverseHands = false,
- bool reverse = false,
- EdgeInsetsGeometry? padding,
- bool? primary,
- ScrollPhysics? physics = const BouncingScrollPhysics(),
- ScrollController? controller,
- Widget? child,
- Clip clipBehavior = Clip.hardEdge,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- String? restorationId,
- ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
- MainAxisSize mainAxisSize = MainAxisSize.max,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
- CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
- TextDirection? textDirection,
- TextBaseline? textBaseline,
- VerticalDirection verticalDirection = VerticalDirection.down,
- 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);