Open pishguy opened 5 years ago
You control the open event by calling showStopper
. This function returns a PersistentBottomSheetController
from which you can listen to the closed
Future which will complete when the stopper is closed.
@aryzhov could you give me by code how can i do that? thanks
void foo(BuildContext context) async {
final controller = showStopper(context, ...);
print("Stopper opened!");
await controller.closed;
print("Stopper closed!");
}
+1
@aryzhov
how can i close sheet programically?
for this library how can i detect stopper opened and closed?