
An introduction to widget testing - Flutter
Sep 22, 2025 · The testWidgets function allows you to define a widget test and creates a WidgetTester to work with. This test verifies that MyWidget displays a given title and message.
Testing Flutter apps
Oct 30, 2025 · The goal of a widget test is to verify that the widget's UI looks and interacts as expected. Testing a widget involves multiple classes and requires a test environment that …
Tap, drag, and enter text - Flutter
Oct 30, 2025 · Many widgets not only display information, but also respond to user interaction. This includes buttons that can be tapped, and TextField for entering text. To test these …
An introduction to unit testing - Flutter
Oct 30, 2025 · The test package provides the core framework for writing unit tests, and the flutter_test package provides additional utilities for testing widgets. This recipe demonstrates …
Find widgets - Flutter
Sep 22, 2025 · The find constant provided by the flutter_test package provides several ways to locate widgets in the test environment. This recipe demonstrated three of these methods, and …
Widget catalog - Flutter
Oct 28, 2025 · Create beautiful apps faster with Flutter's collection of visual, structural, platform, and interactive widgets. In addition to browsing widgets by category, you can also see all the …
Handle scrolling - Flutter
Oct 30, 2025 · In this recipe, learn how to scroll through a list of items to verify a specific widget is being displayed, and the pros and cons of different approaches. This recipe uses the following …
Testing & debugging - Flutter
Apr 4, 2024 · Check app functionality with an integration test Learn how to write integration tests
Widget testing - Flutter
Handle scrolling How to handle scrolling in a widget test. Was this page's content helpful? Unless stated otherwise, the documentation on this site reflects Flutter 3.35.5. Page last updated on …
Check app functionality with an integration test - Flutter
Oct 28, 2025 · The integration_test package lets you: Use the flutter drive command to run tests on a physical device or emulator. Run on Firebase Test Lab, to automate testing on a variety …