ubras材质

Searching…

docs.flutter.dev

An introduction to widget testing - Flutter

Sep 22, 2025 · In the introduction to unit testing recipe, you learned how to test Dart classes using the test package. To test widget classes, you need a few additional tools provided by the flutter_test package, whi...

docs.flutter.dev

Testing Flutter apps

Jan 21, 2026 · Testing a widget involves multiple classes and requires a test environment that provides the appropriate widget lifecycle context. For example, the Widget being tested should be able to receive and resp...

docs.flutter.dev

Widget testing - Flutter

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

docs.flutter.dev

Tap, drag, and enter text - Flutter

Oct 30, 2025 · In the test environment, Flutter doesn't automatically rebuild widgets when the state changes. To ensure that the widget tree is rebuilt after simulating a user interaction, call the pump() or pumpAndSe...

docs.flutter.dev

Find widgets - Flutter

Sep 22, 2025 · To locate widgets in a test environment, use the Finder classes. While it's possible to write your own Finder classes, it's generally more convenient to locate widgets using the tools provided by the fl...

docs.flutter.dev

Handle scrolling - Flutter

Oct 30, 2025 · How to handle scrolling in a widget test. Now, you can write a test. In this example, scroll through the list of items and verify that a particular item exists in the list. The WidgetTester class provid...

docs.flutter.dev

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 provided b...

docs.flutter.dev

Check app functionality with an integration test - Flutter

Mar 7, 2026 · 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 of devices. Use flutter_test...

docs.flutter.dev

Test orientation - Flutter

Nov 24, 2025 · This test makes sure that the orientation is landscape and that only 3 columns of data appear in the app: In test/widget_test.dart, inside of the Orientation group, add the following test after the land...

docs.flutter.dev

Capabilities & policies - Flutter

Oct 30, 2025 · Test the branching code by mocking capabilities and policies so the widget tests don't need to change when capabilities or policies change. Name the methods in your capabilities and policies classes bas...