show method
void
show(
- ScaffoldState state, {
- ThemeData? themeData,
- Color? backgroundColor,
- 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 onthemeData- Optional theme for stylingbackgroundColor- Background color of the bottom sheetbuilder- 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);
}