flutter-add-widget-test
Create Reliable Flutter Widget Tests
Flutter UI changes can fail when rendering and user interactions are not tested. This skill provides a clear workflow for building focused WidgetTester tests and validating state changes.
Установить с помощью моего Агента
Скопируйте этот запрос в своего Агента. Он содержит каноническую страницу Skill и манифест.
Review the Skillstore skill "flutter-add-widget-test" from https://skillstore.io/skills/flutter-flutter-add-widget-test.md and its manifest at https://skillstore.io/api/skills/flutter-flutter-add-widget-test/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Ваш Агент по-прежнему должен показать план и запросить все подтверждения, требуемые политикой безопасности.
Ресурсы для AI-агентов
Используйте эти ссылки, когда AI-агенту, crawler или script нужен чистый контекст вместо полной страницы.
Протестировать
Использование «flutter-add-widget-test». Test a counter button that increments from zero.
Ожидаемый результат:
- A WidgetTester test structure with a MaterialApp wrapper.
- An initial assertion for zero, a tap action, a pump call, and an assertion for one.
Использование «flutter-add-widget-test». Test adding and dismissing a todo item.
Ожидаемый результат:
- A test sequence for entering todo text and tapping the add button.
- Assertions confirming the item appears, then disappears after a dismissal gesture.
Аудит безопасности
БезопасноAll 32 static findings are false positives caused by Markdown inline-code delimiters and ordinary Dart identifiers. The skill contains Flutter widget-test guidance and a local example only; no executable shell, Ruby, Python, network, certificate, or reconnaissance behavior was found.
Факторы риска
⚙️ Внешние команды (28)
📁 Доступ к файловой системе (1)
Поделиться и цитировать этот отчет
Делитесь версионным отчетом об оценке, нейтральным значком, встраиваемой карточкой и цитатами. Skillstore публикует доказательства, не решая, безопасен ли этот Skill.
Копировать ссылку на отчёт
https://skillstore.io/skills/flutter-flutter-add-widget-test/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportЗначок Markdown
[](https://skillstore.io/skills/flutter-flutter-add-widget-test?utm_source=security_passport_badge)Значок HTML
<a href="https://skillstore.io/skills/flutter-flutter-add-widget-test?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/flutter-flutter-add-widget-test/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Встраиваемая карточка
<iframe src="https://skillstore.io/embed/skills/flutter-flutter-add-widget-test.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Академические ссылки (APA · BibTeX · CFF)
Цитата APA
flutter. (2026). flutter-add-widget-test security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/flutter-flutter-add-widget-test/audits/1Цитата BibTeX
@techreport{flutter-flutter-flutter-add-widget-test-2026,
author = {flutter},
title = {flutter-add-widget-test security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/flutter-flutter-add-widget-test/audits/1},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "flutter-add-widget-test security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "flutter"
date-released: "2026-08-30"
url: "https://skillstore.io/skills/flutter-flutter-add-widget-test/audits/1"
identifiers:
- type: other
value: "skillstore:flutter-flutter-add-widget-test:audit:1"
description: "Skillstore immutable audit report identifier"
Оценка Skillstore
Почему такая оценка Достоверность доказательств: СреднийЧто вы можете построить
Test a new form interaction
Create a widget test that enters text, taps a control, and checks the updated interface.
Verify a reusable component
Confirm that a shared widget renders expected content and responds to a defined user action.
Review a regression test
Use the checklist to verify that a test covers setup, action, frame updates, and assertions.
Попробуйте эти промпты
Create a Flutter widget test for MyWidget. Verify that it renders inside a MaterialApp.
Write a widget test for my Flutter screen. Tap the Save button, pump the widget tree, and verify the success message.
Create a widget test that enters text into my search field and verifies the filtered list item appears.
Create a Flutter widget test for a dismissible list item. Drag it, wait for the animation, and verify it is removed.
Лучшие практики
- Assert the initial UI state before triggering an interaction.
- Pump the widget tree after every action that changes state.
- Use stable keys when text or widget types are not unique.
Избегать
- Do not assert state changes before pumping a frame.
- Do not use pumpAndSettle for every test when a single pump is sufficient.
- Do not depend on ambiguous finders when multiple widgets match.