SlidingUpPanel constructor
SlidingUpPanel({
- Key? key,
- Widget? panel,
- Widget panelBuilder()?,
- Widget? body,
- Widget? collapsed,
- double minHeight = 100.0,
- double maxHeight = 500.0,
- double? snapPoint,
- Border? border,
- BorderRadiusGeometry? borderRadius,
- List<
BoxShadow> ? boxShadow = const <BoxShadow>[BoxShadow(blurRadius: 8.0, color: Color.fromRGBO(0, 0, 0, 0.25))], - Color color = Colors.white,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- bool renderPanelSheet = true,
- bool panelSnapping = true,
- PanelController? controller,
- bool backdropEnabled = false,
- Color backdropColor = Colors.black,
- double backdropOpacity = 0.5,
- bool backdropTapClosesPanel = true,
- void onPanelSlide(
- double position
- VoidCallback? onPanelOpened,
- VoidCallback? onPanelClosed,
- bool parallaxEnabled = false,
- double parallaxOffset = 0.1,
- bool isDraggable = true,
- SlideDirection slideDirection = SlideDirection.UP,
- PanelState defaultPanelState = PanelState.CLOSED,
- Widget? header,
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);