showBottomSheetDialog function

void showBottomSheetDialog(
  1. BuildContext context,
  2. dynamic deleteCallback()
)

Implementation

void showBottomSheetDialog(BuildContext context, Function() deleteCallback) {
  SizeConfig().init(context);
  showModalBottomSheet(
      context: context,
      backgroundColor: Colors.transparent,
      shape: const RoundedRectangleBorder(
        borderRadius: BorderRadius.only(
            topLeft: Radius.circular(15.0), topRight: Radius.circular(15.0)),
      ),
      builder: (context) {
        return BottomSheetDialog(deleteCallback);
      });
}