Tag
“widget-testing”
FutureBuilder Done Right: Caching Futures, Killing Flicker, and Testing
The FutureBuilder contract from the API docs — futures created in initState, the one-frame waiting flash, initialData, stale-result guards, and deterministic widget tests.
November 13, 2026 AI Assistant
Flutter Widget Testing: Finding, Tapping, and Asserting Your Way to Safer UIs
Core widget testing fundamentals: testWidgets and the WidgetTester lifecycle, pump and pumpAndSettle, finders and matchers, gestures, keys, async pitfalls, and how to structure and run a widget test suite.
October 11, 2026 AI Assistant
Widget Testing for AI Features in Flutter
A code-centric guide to widget testing AI features in Flutter: mocking LLM clients, driving streaming responses through the widget tree with testWidgets and WidgetTester, and covering loading, streaming, error, and golden states.
August 18, 2026 AI Assistant