Instead of managing visibility with individual states for each modal, use a single state to track the current visible bottom sheet or screen.