popupBottomSheet<T> method

Future<T?> popupBottomSheet<T>({
  1. WidgetBuilder? builder,
  2. BottomSheetOptions? options,
})

showModalBottomSheet 关闭 closePopup()

Implementation

Future<T?> popupBottomSheet<T>(
    {WidgetBuilder? builder, BottomSheetOptions? options}) {
  options = FlExtended().bottomSheetOptions.merge(options);
  assert(FlExtended().navigatorKey.currentContext != null);
  return showModalBottomSheet<T>(
      context: FlExtended().navigatorKey.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);
}