showBottomSheet method

void showBottomSheet(
  1. BuildContext context, {
  2. ThemeData? themeData,
  3. Color? backgroundColor,
  4. PickerWidgetBuilder? builder,
})

show picker bottom sheet

Implementation

void showBottomSheet(
  BuildContext context, {
  ThemeData? themeData,
  Color? backgroundColor,
  PickerWidgetBuilder? builder,
}) {
  Scaffold.of(context).showBottomSheet((BuildContext context) {
    final picker = makePicker(themeData);
    return builder == null ? picker : builder(context, picker);
  }, backgroundColor: backgroundColor);
}