popupBottomSheet<T> method
showModalBottomSheet 关闭 closePopup()
Implementation
Future<T?> popupBottomSheet<T>(
{WidgetBuilder? builder, BottomSheetOptions? options}) {
options = GlobalOptions().bottomSheetOptions.merge(options);
return showModalBottomSheet(
context: GlobalOptions().globalNavigatorKey.currentContext!,
builder: builder ?? toWidgetBuilder,
backgroundColor: options.backgroundColor,
elevation: options.elevation,
shape: options.shape,
clipBehavior: options.clipBehavior,
barrierColor: options.barrierColor,
routeSettings: options.routeSettings,
transitionAnimationController: options.transitionAnimationController,
isScrollControlled: options.isScrollControlled,
useRootNavigator: options.useRootNavigator,
isDismissible: options.barrierDismissible,
anchorPoint: options.anchorPoint,
enableDrag: options.enableDrag);
}