Hey there seems to be a problem of navigator contexts
add this to you modalBottomSheet in order to make it dim correctly
useRootNavigator: true,
Here is in your code
void showCustomBottomSheet(BuildContext context) {
showModalBottomSheet(
context: context,
useRootNavigator: true,