improve bottom sheet handling
This commit is contained in:
1 parent
59c567d495
commit
805d39e300
10 files changed
+352
-324
No files matched your search
@@ -30,12 +30,19 @@ class BottomSheetController extends _$BottomSheetController {
|
||||
return null;
|
||||
}
|
||||
|
||||
///We depend on a listener that updates/syncs UI to open the sheet
|
||||
// ignore: use_setters_to_change_properties api decision
|
||||
void show(Sheet sheet) {
|
||||
state = sheet;
|
||||
}
|
||||
|
||||
void dismiss() {
|
||||
///We depend on a listener that updates/syncs UI to close the sheet
|
||||
void requestDismiss() {
|
||||
state = null;
|
||||
}
|
||||
|
||||
///This is called by UI when the sheet gets closed
|
||||
void closed() {
|
||||
state = null;
|
||||
}
|
||||
}
|
||||
@@ -42,7 +42,7 @@ final class BottomSheetControllerProvider
|
||||
}
|
||||
|
||||
String _$bottomSheetControllerHash() =>
|
||||
r'94b9467731de45d4edd24028d76279e17fc26d02';
|
||||
r'21c353d433c8a964d63915cc4ebf5767e16210b1';
|
||||
|
||||
abstract class _$BottomSheetController extends $Notifier<Sheet?> {
|
||||
Sheet? build();
|
||||
|
||||
Reference in new issue
Block a user