
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.
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 …
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 …
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 …
Testing & debugging - Flutter
Apr 4, 2024 · Check app functionality with an integration test Learn how to write integration tests
Handle scrolling - Flutter
Oct 30, 2025 · To scroll through lists via integration tests, use the methods provided by the WidgetTester class, which is included in the flutter_test package: In this recipe, learn how to …
Testing plugins - Flutter
Oct 30, 2025 · These tests allow you to test the Dart portion of your plugin just as you would test the Dart code of a non-plugin package. However, the plugin's native code won't be loaded, so …
Widgets - Flutter
Dec 24, 2025 · The Flutter SDK includes many built-in widgets, from the smallest pieces of UI, like Text, to layout widgets, and widgets that style your application. The following widgets are the …
Material component widgets - Flutter
Flutter provides a variety of visual, behavioral, and motion-rich widgets that implement the Material 3 design specification. Material 3 is the default design language of Flutter, enabling …