
Description
flutter-add-widget-test is an agent skill from Flutter's agent-plugins collection for writing component-level tests with WidgetTester, the tool in flutter_test that checks how a widget renders and how it responds to taps, scrolling and text entry. It is used when validating a widget's appearance or behaviour without running a full app. The skill sets out the setup: add flutter_test to the dev dependencies in pubspec.yaml, place every test file in the test directory at the project root, and give each file a name ending in _test.dart, such as widget_test.dart. It then describes the core components the agent uses to find and inspect widgets in the widget tree, and a workflow for implementing a widget test, followed by a section on interaction and state management, and examples. The skill is useful for Flutter developers who want widget tests that a coding agent writes in the conventional layout, so they run with flutter test without extra configuration. It is particularly suited to checking that a button triggers an action, a list scrolls to an item, or a text field accepts input and updates the screen. It is listed on skills.sh, where the page shows install counts and GitHub stars for the collection, and its security audits all pass, including Gen Agent Trust Hub, Socket and Snyk. Install it with npx skills add https://github.com/flutter/agent-plugins --skill flutter-add-widget-test.…
Highlights
- WidgetTester component tests
- Tap, scroll and text entry checks
- Setup for flutter_test
- Test file naming and layout
- Interaction and state examples
- Installs from skills.sh
Ratings & Reviews
No ratings yet
Be the first to rate flutter-add-widget-test.
People also visit
flutter-add-widget-test FAQ
What does this skill write?
Component-level widget tests with WidgetTester that check rendering and interactions such as taps, scrolling and text entry.
How is the project set up?
Add flutter_test to dev_dependencies in pubspec.yaml, put tests in the test directory and name them with _test.dart.
Does it test whole apps?
No. The skill is for component-level tests of widgets.
How do I install it?
Run npx skills add https://github.com/flutter/agent-plugins --skill flutter-add-widget-test.
What are the security audit results?
skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.
How popular is it?
The page shows about 37.3K installs, and the flutter/agent-plugins repository has 3.1K GitHub stars.
What are the best flutter-add-widget-test alternatives?
Popular alternatives to flutter-add-widget-test include flutter-dev, flutter-apply-architecture-best-practices and flutter-build-responsive-layout. See all flutter-add-widget-test alternatives







