mirror of
https://github.com/flutter/flutter.git
synced 2026-01-27 20:42:44 +08:00
When setState() calls occur asynchronously, it's possible that the Futures on which they're waiting don't complete until the widget is offscreen. To avoid this, we check the widget is mounted before calling setState().