show static method

void show({
  1. required BuildContext context,
  2. required Widget child,
  3. bool isDarkTheme = false,
})

Implementation

static void show({
  required BuildContext context,
  required Widget child,
  bool isDarkTheme = false,
}) {
  showModalBottomSheet<void>(
    context: context,
    backgroundColor: isDarkTheme ? ColorResource.blackColor : Colors.white,
    shape: const RoundedRectangleBorder(
      borderRadius: BorderRadius.vertical(
        top: Radius.circular(12),
      ),
    ),
    builder: (BuildContext context) {
      return child;
    },
  );
}