diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 91490f0f..bca87ff7 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "dart-flutter", "displayName": "Dart and Flutter", - "version": "1.0.7", + "version": "1.0.8", "description": "Official Claude plugin for Dart and Flutter that installs Flutter/Dart Skills and Dart MCP server for building natively compiled, visually stunning applications for mobile, web, desktop, and embedded devices from a single codebase", "author": { "name": "Dart and Flutter", diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json index b278ae66..6cbaa43a 100644 --- a/.codex-plugin/plugin.json +++ b/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "dart-flutter", - "version": "1.0.7", + "version": "1.0.8", "description": "Official Codex plugin for Dart and Flutter that installs Flutter/Dart Skills and Dart MCP server for building natively compiled, visually stunning applications for mobile, web, desktop, and embedded devices from a single codebase.", "author": { "name": "Google LLC", diff --git a/.cursor-plugin/plugin.json b/.cursor-plugin/plugin.json index b4ea8377..4692d843 100644 --- a/.cursor-plugin/plugin.json +++ b/.cursor-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "dart-flutter", "displayName": "Dart and Flutter", - "version": "1.0.7", + "version": "1.0.8", "description": "Official Cursor plugin for Dart and Flutter that installs Flutter/Dart Skills and Dart MCP server for building natively compiled, visually stunning applications for mobile, web, desktop, and embedded devices from a single codebase.", "author": { "name": "Dart and Flutter Team", diff --git a/skills/dart-migrate-to-checks-package/SKILL.md b/skills/dart-migrate-to-checks-package/SKILL.md index 3daf8944..fb392516 100644 --- a/skills/dart-migrate-to-checks-package/SKILL.md +++ b/skills/dart-migrate-to-checks-package/SKILL.md @@ -171,7 +171,7 @@ For any target test file: ..has((e) => e.message, 'message').equals('invalid input'); // NO (Passing a callback to sync throws will cause a compiler error!) - check(() => triggerSync").throws((it) => ...); // ERROR! + check(() => triggerSyncError()).throws((it) => ...); // ERROR! ``` - **Asynchronous** (`Subject>`): `.throws()` returns `Future`. Because you cannot chain directly off a `Future`, this diff --git a/skills/dart-use-doc-examples/SKILL.md b/skills/dart-use-doc-examples/SKILL.md index a9b4f153..22ee47af 100644 --- a/skills/dart-use-doc-examples/SKILL.md +++ b/skills/dart-use-doc-examples/SKILL.md @@ -30,7 +30,7 @@ The `{@example}` directive parses an external file and resolves it into a fenced /// /// ```dart /// final client = Client(); -/// client.send(); +/// await client.get(Uri.parse('https://example.com')); /// ``` ``` @@ -48,10 +48,10 @@ Often, an external example file contains imports, setup, or `void main()` wrappe ```dart import 'package:http/http.dart'; -void main() { +Future main() async { // #region request_snippet final client = Client(); - client.send(); + await client.get(Uri.parse('https://example.com')); // #endregion request_snippet } ``` diff --git a/tool/.dart_skills_githash b/tool/.dart_skills_githash index b0445a0c..13e75b98 100644 --- a/tool/.dart_skills_githash +++ b/tool/.dart_skills_githash @@ -1 +1 @@ -bf984f3ef223dd85e92036f934bbcb6bf301e4ce +fa691671fda391ea1d1f8c7ae61bddc03348ec85