1
0
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:
Andrew Brogdon
2018-11-08 09:59:43 -08:00
committed by GitHub
parent 4ed6aca905
commit 811b5d245a
4 changed files with 24 additions and 4 deletions

View File

@@ -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();