flutter-add-widget-test

Originally fromflutter/skills
Installation
SKILL.md

Writing Flutter Widget Tests

Contents

Setup & Configuration

Ensure the testing environment is properly configured before authoring widget tests.

  1. Add the flutter_test dependency to the dev_dependencies section of pubspec.yaml.
  2. Place all test files in the test/ directory at the root of the project.
  3. Suffix all test file names with _test.dart (e.g., widget_test.dart).

Core Components

Utilize the following flutter_test components to interact with and validate the widget tree:

Installs
1.2K
GitHub Stars
2.7K
First Seen
13 days ago
flutter-add-widget-test — flutter/agent-plugins