GFBottomSheet constructor

GFBottomSheet({
  1. Key? key,
  2. required Widget contentBody,
  3. Widget? stickyHeader,
  4. Widget? stickyFooter,
  5. required GFBottomSheetController controller,
  6. double minContentHeight = 0,
  7. double maxContentHeight = 300,
  8. double elevation = 0.0,
  9. double stickyFooterHeight = 0.0,
  10. double stickyHeaderHeight = 0.0,
  11. int animationDuration = 1200,
  12. bool enableExpandableContent = false,
})

Opens sheet from bottom as a popup on current sheets it has different customization options.

Implementation

GFBottomSheet({
  Key? key,
  required this.contentBody,
  this.stickyHeader,
  this.stickyFooter,
  required this.controller,
  this.minContentHeight = 0,
  this.maxContentHeight = 300,
  this.elevation = 0.0,
  this.stickyFooterHeight = 0.0,
  this.stickyHeaderHeight = 0.0,
  this.animationDuration = 1200,
  this.enableExpandableContent = false,
})  : assert(elevation >= 0.0),
      assert(minContentHeight >= 0.0),
      super(key: key) {
  controller.height = minContentHeight;
  controller.animationDuration = animationDuration;
}