mirror of
https://github.com/flutter/samples.git
synced 2025-11-11 07:18:15 +00:00
Fixes Future<void> issue in Shrine. (#28)
This commit is contained in:
@@ -381,7 +381,8 @@ class _ExpandingBottomSheetState extends State<ExpandingBottomSheet> with Ticker
|
||||
// only be relevant for Android).
|
||||
Future<bool> _onWillPop() async {
|
||||
if (!_isOpen) {
|
||||
return SystemNavigator.pop();
|
||||
await SystemNavigator.pop();
|
||||
return true;
|
||||
}
|
||||
|
||||
close();
|
||||
|
||||
Reference in New Issue
Block a user