go_router & Flutter: ModalBottomSheetRoute & StatefulShellRoute it is not possible to hide the sheet properly after it has opened from branch
I tried in different ways, using the global key to check for the presence of context, using canpol from context, also using local variables as described in the example below. In all cases, there are nuances, for example, if, following the example below, you run and poke between tabs, then at what point does the exception multiple global key happen, sometimes the sheet simply does not have time to close, so I tested and set future delayed so that it could close. But the problem with multiple global key remains relevant, and I don’t like this method, maybe there is some official solution? I didn’t find it in the examples.