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.
التثبيت باستخدام Agent لدي
انسخ هذا الطلب إلى Agent لديك. يتضمن صفحة Skill المعتمدة وملف manifest.
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.يجب أن يواصل Agent عرض خطته وطلب أي تأكيد تفرضه سياسة الأمان.
موارد مهيّأة لـ Agents
استخدم هذه الروابط عندما يحتاج AI Agent أو 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 الأدلة من دون أن تقرر ما إذا كانت هذه المهارة آمنة.
نسخ رابط التقرير
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.