showModal<T> method
Future<T?>
showModal<T>(
- BuildContext context, {
- ThemeData? themeData,
- bool isScrollControlled = false,
- Color? backgroundColor,
- PickerWidgetBuilder? builder,
Display modal picker
Implementation
Future<T?> showModal<T>(BuildContext context,
{material.ThemeData? themeData,
bool isScrollControlled = false,
bool useRootNavigator = false,
Color? backgroundColor,
PickerWidgetBuilder? builder}) async {
return await material.showModalBottomSheet<T>(
context: context, //state.context,
isScrollControlled: isScrollControlled,
useRootNavigator: useRootNavigator,
backgroundColor: backgroundColor,
builder: (BuildContext context) {
final picker = makePicker(themeData, true);
return builder == null ? picker : builder(context, picker);
});
}