showBottomSheet method
void
showBottomSheet({
- Color? backgroundColor,
- double? elevation,
- ShapeBorder? shape,
- Clip? clipBehavior,
inherited
Shows a bottom sheet
See also showModalBottomSheetAFib
.
Implementation
void showBottomSheet({
required AFNavigatePushAction navigate,
material.Color? backgroundColor,
double? elevation,
material.ShapeBorder? shape,
material.Clip? clipBehavior,
}) async {
final screenId = navigate.screenId;
_updateOptionalGlobalParam(navigate);
final builder = AFibF.g.screenMap.findBy(screenId);
if(builder == null) {
throw AFException("The screen $screenId is not registered in the screen map");
}
final ctx = flutterContext;
if(ctx != null) {
material.Scaffold.of(ctx).showBottomSheet<dynamic>(
builder,
backgroundColor: backgroundColor,
elevation: elevation,
shape: shape,
clipBehavior: clipBehavior,
);
}
}