showBottom<T> method
Future<T?>
showBottom<T>(
- BuildContext context, {
- PopupAnimation animation = PopupAnimation.slideAndFade,
- bool barrierDismissible = true,
- Color? barrierColor,
- EdgeInsets? margin,
- EdgeInsets? padding,
- BorderRadius? borderRadius,
- Color? backgroundColor,
Show ContentView as bottom sheet Usage:
final result = await myContentView.showBottom(context);
Implementation
Future<T?> showBottom<T>(
BuildContext context, {
PopupAnimation animation = PopupAnimation.slideAndFade,
bool barrierDismissible = true,
Color? barrierColor,
EdgeInsets? margin,
EdgeInsets? padding,
BorderRadius? borderRadius,
Color? backgroundColor,
}) async {
return await showPopup<T>(
context,
position: PopupPosition.bottom,
animation: animation,
barrierDismissible: barrierDismissible,
barrierColor: barrierColor,
margin: margin,
padding: padding,
borderRadius: borderRadius,
backgroundColor: backgroundColor,
);
}