showBottomSheet<T> method

Future<T?> showBottomSheet<T>({
  1. required Widget child,
  2. Color? backgroundColor,
})

Implementation

Future<T?> showBottomSheet<T>({
  required Widget child,
  Color? backgroundColor,
}) async {
  return showModalBottomSheet<T>(
    context: this,
    backgroundColor: backgroundColor ?? theme.scaffoldBackgroundColor,
    shape: RoundedRectangleBorder(
      borderRadius: BorderRadius.vertical(
        top: Radius.circular(lowRadiusValue),
      ),
    ),
    builder: (_) => child,
  );
}