About 50 results
Open links in new tab
  1. 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.

  2. Testing Flutter apps

    Jan 21, 2026 · 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 provides the …

  3. Widget testing - Flutter

    Oct 28, 2025 · Widget testing A catalog of recipes for adding widget testing to your Flutter app.

  4. Flutter learning resources

    Feb 20, 2026 · Animate a widget using a physics simulation Learn how to move a widget from a dragged point back to the center using a spring simulation.

  5. 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 the core features …

  6. 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 several more …

  7. 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 scroll through a list of …

  8. Common Flutter errors

    Oct 30, 2025 · Here is an incomplete list of widgets that expect specific parent widgets within the Flutter framework. Feel free to submit a PR (using the doc icon in the top right corner of the page) to expand …

  9. 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 interactions, you …

  10. Debug Flutter apps from code

    Oct 28, 2025 · If your app uses the Focus widget, use the debugLabel property to simplify finding its focus node in the tree. You can also use the debugFocusChanges boolean property to enable …