SlidingPanel constructor

const SlidingPanel({
  1. Key? key,
  2. InitialPanelState initialState = InitialPanelState.closed,
  3. bool animatedAppearing = false,
  4. required PanelContent content,
  5. PanelSize size = const PanelSize(),
  6. PanelMaxWidth maxWidth = const PanelMaxWidth(),
  7. PanelDecoration decoration = const PanelDecoration(),
  8. BackdropConfig backdropConfig = const BackdropConfig(),
  9. required PanelController panelController,
  10. PanelAutoSizing autoSizing = const PanelAutoSizing(),
  11. bool renderPanelBackground = true,
  12. PanelSnapping snapping = PanelSnapping.disabled,
  13. double snappingTriggerPercentage = 0.0,
  14. bool isDraggable = true,
  15. ScrollPhysics? physics,
  16. double parallaxSlideAmount = 0.2,
  17. double dragMultiplier = 1.0,
  18. Duration duration = const Duration(milliseconds: 1000),
  19. Curve curve = Curves.fastOutSlowIn,
  20. bool isTwoStatePanel = false,
  21. BackPressBehavior backPressBehavior = BackPressBehavior.POP,
  22. PanelPoppingBehavior panelPoppingBehavior = PanelPoppingBehavior.POP_AFTER_TAP,
  23. PanelClosedOptions panelClosedOptions = const PanelClosedOptions(),
  24. SafeAreaConfig safeAreaConfig = const SafeAreaConfig.all(),
  25. void onPanelSlide(
    1. double position
    )?,
  26. void onPanelStateChanged(
    1. PanelState state
    )?,
  27. void onThrowResult(
    1. dynamic result
    )?,
})

Implementation

const SlidingPanel({
  Key? key,
  this.initialState = InitialPanelState.closed,
  this.animatedAppearing = false,
  required this.content,
  this.size = const PanelSize(),
  this.maxWidth = const PanelMaxWidth(),
  this.decoration = const PanelDecoration(),
  this.backdropConfig = const BackdropConfig(),
  required this.panelController,
  this.autoSizing = const PanelAutoSizing(),
  this.renderPanelBackground = true,
  this.snapping = PanelSnapping.disabled,
  this.snappingTriggerPercentage = 0.0,
  this.isDraggable = true,
  this.physics,
  this.parallaxSlideAmount = 0.2,
  this.dragMultiplier = 1.0,
  this.duration = const Duration(milliseconds: 1000),
  this.curve = Curves.fastOutSlowIn,
  this.isTwoStatePanel = false,
  this.backPressBehavior = BackPressBehavior.POP,
  this.panelPoppingBehavior = PanelPoppingBehavior.POP_AFTER_TAP,
  this.panelClosedOptions = const PanelClosedOptions(),
  this.safeAreaConfig = const SafeAreaConfig.all(),
  this.onPanelSlide,
  this.onPanelStateChanged,
  this.onThrowResult,
})  : this._isModal = false,
      _panelModalRoute = null;