SolidBottomSheet constructor

SolidBottomSheet({
  1. Key? key,
  2. required Widget headerBar,
  3. required Widget body,
  4. SolidController? controller,
  5. double minHeight = 0,
  6. double maxHeight = 500,
  7. bool autoSwiped = true,
  8. bool toggleVisibilityOnTap = false,
  9. bool canUserSwipe = true,
  10. bool draggableBody = false,
  11. Smoothness smoothness = Smoothness.medium,
  12. double elevation = 0.0,
  13. bool showOnAppear = false,
  14. void onShow()?,
  15. 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;
}