add await to make timing match sync async modes (#20320)

This commit is contained in:
Jonah Williams
2018-08-08 09:39:33 -07:00
committed by GitHub
parent c0b7070319
commit f310aca08b

View File

@@ -298,6 +298,7 @@ class RefreshIndicatorState extends State<RefreshIndicator> with TickerProviderS
// Stop showing the refresh indicator.
Future<void> _dismiss(_RefreshIndicatorMode newMode) async {
await new Future<void>.value();
// This can only be called from _show() when refreshing and
// _handleScrollNotification in response to a ScrollEndNotification or
// direction change.