SolidBottomSheet constructor
SolidBottomSheet({
- Key? key,
- required Widget headerBar,
- required Widget body,
- SolidController? controller,
- double minHeight = 0,
- double maxHeight = 500,
- bool autoSwiped = true,
- bool toggleVisibilityOnTap = false,
- bool canUserSwipe = true,
- bool draggableBody = false,
- Smoothness smoothness = Smoothness.medium,
- double elevation = 0.0,
- bool showOnAppear = false,
- void onShow()?,
- void onHide()?,
Implementation
SolidBottomSheet({
Key? key,
required this.headerBar,
required this.body,
this.controller,
this.minHeight = 0,
this.maxHeight = 500,
this.autoSwiped = true,
this.toggleVisibilityOnTap = false,
this.canUserSwipe = true,
this.draggableBody = false,
this.smoothness = Smoothness.medium,
this.elevation = 0.0,
this.showOnAppear = false,
this.onShow,
this.onHide,
}) : assert(elevation >= 0.0),
assert(minHeight >= 0.0),
super(key: key) {
if (controller == null) {
this.controller = SolidController();
}
this.controller!.height =
this.showOnAppear ? this.maxHeight : this.minHeight;
this.controller!.smoothness = smoothness;
}