SlidingUpPanel constructor

SlidingUpPanel({
  1. Key? key,
  2. Widget? panel,
  3. Widget panelBuilder(
    1. ScrollController sc
    )?,
  4. Widget? body,
  5. Widget? collapsed,
  6. double minHeight = 100.0,
  7. double maxHeight = 500.0,
  8. double? snapPoint,
  9. Border? border,
  10. BorderRadiusGeometry? borderRadius,
  11. List<BoxShadow>? boxShadow = const <BoxShadow>[BoxShadow(blurRadius: 8.0, color: Color.fromRGBO(0, 0, 0, 0.25))],
  12. Color color = Colors.white,
  13. EdgeInsetsGeometry? padding,
  14. EdgeInsetsGeometry? margin,
  15. bool renderPanelSheet = true,
  16. bool panelSnapping = true,
  17. PanelController? controller,
  18. bool backdropEnabled = false,
  19. Color backdropColor = Colors.black,
  20. double backdropOpacity = 0.5,
  21. bool backdropTapClosesPanel = true,
  22. void onPanelSlide(
    1. double position
    )?,
  23. VoidCallback? onPanelOpened,
  24. VoidCallback? onPanelClosed,
  25. bool parallaxEnabled = false,
  26. double parallaxOffset = 0.1,
  27. bool isDraggable = true,
  28. SlideDirection slideDirection = SlideDirection.UP,
  29. PanelState defaultPanelState = PanelState.CLOSED,
  30. Widget? header,
  31. Widget? footer,
})

Implementation

SlidingUpPanel(
    {Key? key,
    this.panel,
    this.panelBuilder,
    this.body,
    this.collapsed,
    this.minHeight = 100.0,
    this.maxHeight = 500.0,
    this.snapPoint,
    this.border,
    this.borderRadius,
    this.boxShadow = const <BoxShadow>[
      BoxShadow(
        blurRadius: 8.0,
        color: Color.fromRGBO(0, 0, 0, 0.25),
      )
    ],
    this.color = Colors.white,
    this.padding,
    this.margin,
    this.renderPanelSheet = true,
    this.panelSnapping = true,
    this.controller,
    this.backdropEnabled = false,
    this.backdropColor = Colors.black,
    this.backdropOpacity = 0.5,
    this.backdropTapClosesPanel = true,
    this.onPanelSlide,
    this.onPanelOpened,
    this.onPanelClosed,
    this.parallaxEnabled = false,
    this.parallaxOffset = 0.1,
    this.isDraggable = true,
    this.slideDirection = SlideDirection.UP,
    this.defaultPanelState = PanelState.CLOSED,
    this.header,
    this.footer})
    : assert(panel != null || panelBuilder != null),
      assert(0 <= backdropOpacity && backdropOpacity <= 1.0),
      assert(snapPoint == null || 0 < snapPoint && snapPoint < 1.0),
      super(key: key);