Skip to content

BottomSheet ​

Static helpers around Flutter's own bottom sheet route — not a widget you place inline, but a Future-returning call you make from a button handler.

View source on GitHub ↗

CLI ​

Install this component into your project:

bottom-sheet
$flutter_beautify add bottom-sheet

Variants ​

FBBottomSheet.standard() · FBBottomSheet.scrollable() · FBBottomSheet.fullscreen() — each wraps showModalBottomSheet / Flutter's route machinery.

Key parameters ​

ParameterTypeDefault
contextBuildContextrequired
childWidgetrequired
titleString?—
isDismissible / enableDragbooltrue (standard)
heightdouble?(standard, scrollable)
onCloseVoidCallback?(fullscreen)

Usage ​

dart
import 'package:your_app/widgets/bottom_sheet.dart';

FBBottomSheet.scrollable(
  context: context,
  title: 'Filters',
  child: FilterList(),
);

Released under the MIT License.