show method

void show(
  1. ScaffoldState state, {
  2. ThemeData? themeData,
  3. Color? backgroundColor,
  4. PickerWidgetBuilder? builder,
})

Shows the picker in a bottom sheet using the provided scaffold state.

Deprecated: Use showBottomSheet instead, which works with BuildContext.

Parameters:

  • state - The scaffold state to show the bottom sheet on
  • themeData - Optional theme for styling
  • backgroundColor - Background color of the bottom sheet
  • builder - Optional custom builder to wrap the picker

Implementation

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