showModalBottomSheetAFib<TReturn extends Object?> method

void showModalBottomSheetAFib<TReturn extends Object?>({
  1. required AFNavigatePushAction navigate,
  2. AFReturnValueDelegate<TReturn>? onReturn,
  3. Color? backgroundColor,
  4. double? elevation,
  5. AFAsyncQuery? executeBefore,
  6. AFAsyncQuery? executeDuring,
  7. ShapeBorder? shape,
  8. Clip? clipBehavior,
  9. Color? barrierColor,
  10. bool isScrollControlled = false,
  11. bool useRootNavigator = false,
  12. bool isDismissible = true,
  13. bool enableDrag = true,
  14. RouteSettings? routeSettings,
})
inherited

Show a modal bottom sheet.

Note that you will close the bottom sheet inside your bottomsheet screen using AFBuildContext.closeBottomSheet and pass it a return value. You can capture that return value by passing in an onReturn delegate to this function.

A very common pattern is to pass back the route parameter for the bottom sheet, which looks like:

context.closeBottomSheet(context.p);

inside the bottom sheet screen.

Implementation

void showModalBottomSheetAFib<TReturn extends Object?>({
  required AFNavigatePushAction navigate,
  AFReturnValueDelegate<TReturn>? onReturn,
  material.Color? backgroundColor,
  double? elevation,
  AFAsyncQuery? executeBefore,
  AFAsyncQuery? executeDuring,
  material.ShapeBorder? shape,
  material.Clip? clipBehavior,
  material.Color? barrierColor,
  bool isScrollControlled = false,
  bool useRootNavigator = false,
  bool isDismissible = true,
  bool enableDrag = true,
  material.RouteSettings? routeSettings,
}) async {

  showModalBottomSheetStatic<TReturn>(
    dispatch: dispatch,
    navigate: navigate,
    onReturn: onReturn,
    executeBefore: executeBefore,
    executeDuring: executeDuring,
    flutterContext: flutterContext,
    backgroundColor: backgroundColor,
    elevation: elevation,
    shape: shape,
    clipBehavior: clipBehavior,
    barrierColor: barrierColor,
    isScrollControlled: isScrollControlled,
    useRootNavigator: useRootNavigator,
    isDismissible: isDismissible,
    enableDrag: enableDrag,
    routeSettings: routeSettings,
  );
}