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;
}
}
}
@@ -42,7 +42,7 @@ final class BottomSheetControllerProvider
}
String _$bottomSheetControllerHash() =>
r'21c353d433c8a964d63915cc4ebf5767e16210b1';
r'54112ccef72ad7777c746b9f2dc02da1e383c127';
abstract class _$BottomSheetController extends $Notifier<Sheet?> {
Sheet? build();