JkAppBarSingleChildScrollView constructor

const JkAppBarSingleChildScrollView({
  1. Key? key,
  2. bool keepAlive = true,
  3. Axis scrollDirection = Axis.vertical,
  4. bool reverse = false,
  5. EdgeInsetsGeometry? padding,
  6. bool? primary,
  7. ScrollPhysics? physics,
  8. ScrollController? controller,
  9. required Widget child,
  10. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  11. Clip clipBehavior = Clip.hardEdge,
  12. String? restorationId,
  13. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
})

Implementation

const JkAppBarSingleChildScrollView({
  super.key,
  this.keepAlive = true,
  this.scrollDirection = Axis.vertical,
  this.reverse = false,
  this.padding,
  this.primary,
  this.physics,
  this.controller,
  required this.child,
  this.dragStartBehavior = DragStartBehavior.start,
  this.clipBehavior = Clip.hardEdge,
  this.restorationId,
  this.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
}) : assert(
        !(controller != null && (primary ?? false)),
        'Primary ScrollViews obtain their ScrollController via inheritance '
        'from a PrimaryScrollController widget. You cannot both set primary to '
        'true and pass an explicit controller.',
      );