Unverified Commit f310aca0 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

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

parent c0b70703
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment