From f310aca08b3b7a9740b126af5098358a8d3914d2 Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Wed, 8 Aug 2018 09:39:33 -0700 Subject: [PATCH] add await to make timing match sync async modes (#20320) --- packages/flutter/lib/src/material/refresh_indicator.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/flutter/lib/src/material/refresh_indicator.dart b/packages/flutter/lib/src/material/refresh_indicator.dart index 1ce4f428da..e75c90e443 100644 --- a/packages/flutter/lib/src/material/refresh_indicator.dart +++ b/packages/flutter/lib/src/material/refresh_indicator.dart @@ -298,6 +298,7 @@ class RefreshIndicatorState extends State with TickerProviderS // Stop showing the refresh indicator. Future _dismiss(_RefreshIndicatorMode newMode) async { + await new Future.value(); // This can only be called from _show() when refreshing and // _handleScrollNotification in response to a ScrollEndNotification or // direction change.