showBottomSheet method

void showBottomSheet({
  1. required AFNavigatePushAction navigate,
  2. Color? backgroundColor,
  3. double? elevation,
  4. ShapeBorder? shape,
  5. 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,
    );
  }
}