improve sheet show/hide logic

This commit is contained in:
Fabian Freund
2025-10-13 10:32:59 +02:00
parent bad2ae1446
commit 8cf3794525
4 changed files with 15 additions and 6 deletions
@@ -42,7 +42,9 @@ class BottomSheetController extends _$BottomSheetController {
}
///This is called by UI when the sheet gets closed
void closed() {
state = null;
void closed(Sheet sheet) {
if (sheet == stateOrNull) {
state = null;
}
}
}