showModalBottomSheetAFib<TReturn extends Object?> method
void
showModalBottomSheetAFib<TReturn extends Object?>({
- AFReturnValueDelegate<
TReturn> ? onReturn, - Color? backgroundColor,
- double? elevation,
- AFAsyncQuery? executeBefore,
- AFAsyncQuery? executeDuring,
- ShapeBorder? shape,
- Clip? clipBehavior,
- Color? barrierColor,
- bool isScrollControlled = false,
- bool isDismissible = true,
- bool enableDrag = true,
- 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,
);
}