showBottomSheet static method

Future showBottomSheet(
  1. BuildContext context, {
  2. required String id,
  3. String? colorPrimary,
})

Implementation

static Future showBottomSheet(BuildContext context, {required String id, String? colorPrimary}) {
  return showModalBottomSheet(
    backgroundColor: Colors.white,
    barrierColor: Colors.black.withOpacity(0.2),
    context: context,
    isScrollControlled: true,
    builder: (context) {
      return DialogRatingCalling(
        id: id,
        colorPrimary: colorPrimary,
      );
    },
  );
}