SlidablePanel constructor

const SlidablePanel({
  1. Key? key,
  2. required Widget child,
  3. required SlideController controller,
  4. double maxSlideThreshold = 0.6,
  5. Axis axis = Axis.horizontal,
  6. ActionLayout preActionLayout = const ActionLayout(alignment: ActionAlignment.spaceEvenly, motion: ActionMotion.behind),
  7. ActionLayout postActionLayout = const ActionLayout(alignment: ActionAlignment.spaceEvenly, motion: ActionMotion.behind),
  8. List<Widget>? preActions,
  9. List<Widget>? postActions,
  10. VoidCallback? onSlideStart,
  11. bool gestureDisabled = false,
})

Implementation

const SlidablePanel({
  super.key,
  required this.child,
  required this.controller,
  this.maxSlideThreshold = 0.6,
  this.axis = Axis.horizontal,
  this.preActionLayout = const ActionLayout(
    alignment: ActionAlignment.spaceEvenly,
    motion: ActionMotion.behind,
  ),
  this.postActionLayout = const ActionLayout(
    alignment: ActionAlignment.spaceEvenly,
    motion: ActionMotion.behind,
  ),
  this.preActions,
  this.postActions,
  this.onSlideStart,
  this.gestureDisabled = false,
}) : assert(
        maxSlideThreshold >= 0 && maxSlideThreshold <= 1,
        'maxSlideThreshold should be in [0, 1]',
      );