showBottomSheet method

dynamic showBottomSheet({
  1. required Widget child,
  2. bool isDismissible = true,
  3. bool isScrollControlled = true,
  4. Color backgroundColor = Colors.white,
  5. double borderRadius = 8.0,
})

Implementation

showBottomSheet(
        {required Widget child,
        bool isDismissible = true,
        bool isScrollControlled = true,
        Color backgroundColor = Colors.white,
        double borderRadius = 8.0}) =>
    showModalBottomSheet(
      backgroundColor: backgroundColor,
      // here increase or decrease in width),
      useSafeArea: true,
      isDismissible: isDismissible,
      context: this,
      shape: RoundedRectangleBorder(
        borderRadius: BorderRadius.only(
            topLeft: Radius.circular(borderRadius),
            topRight: Radius.circular(borderRadius)),
      ),
      isScrollControlled: isScrollControlled,
      builder: (context) => child,
    );