flutter-gpu-scene-setup
Set up a Flutter app for current Flutter GPU and flutter_scene rendering across native and web targets, including the Scene asset build hook.
Skill by mordechai30
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/mordechai30-flutter-gpu-scene-setup-b03440
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
flutter-gpu-scene-setup- Description
- Set up a Flutter app for current Flutter GPU and flutter_scene rendering across native and web targets, including the Scene asset build hook. Use for new projects and setup repairs.
- License
- BSD-3-Clause
- Instructions
- 37 lines in SKILL.md · view on GitHub
Files (9)
- .DS_Store
- SKILL.md
- build-hook.txt · examples/
- pubspec.txt · examples/
- core-concepts.txt · references/
- first-scene.txt · references/
- flutter-gpu-api.txt · references/
- installation.txt · references/
- scene-readme.txt · references/
SKILL.md (first lines)
# Flutter GPU and Scene setup
Target Flutter 3.47.1 or newer and the current `flutter_scene` API. Use `flutter_scene` for a scene graph and `package:flutter_gpu/gpu.dart` when the task needs direct GPU commands. On native targets, both use Impeller. Scene supplies its own WebGL2 backend on web; direct `flutter_gpu` is a native API.
## Set up
1. Add `flutter_scene` with `flutter pub add flutter_scene`. For direct GPU code, add the SDK dependency below and import `package:flutter_gpu/gpu.dart` with a `gpu` prefix.
```yaml
dependencies:
flutter_gpu:
sdk: flutter
```
2. Enable Flutter GPU in each native target that the app ships. Put `<key>FLTEnableFlutterGPU</key><true/>` in the top-level `<dict>` of `ios/Runner/Info.plist` and `macos/Runner/Info.plist`. Put `<meta-data android:name="io.flutter.embedding.android.EnableFlutterGPU" android:value="true" />` inside `<application>` in `android/app/src/main/AndroidManifest.xml`. Set `fl_dart_project_set_enable_flutter_gpu(project, TRUE)` on the Linux runner's `FlDartProject`; set `project.set_enable_flutter_gpu(true)` on the Windows runner's `flutter::DartProject`. Web needs no Flutter GPU switch. `flutter run --enable-flutter-gpu` is useful for a native development run.
3. For Scene assets, run `dart run flutter_scene:init`. It creates or updates the build-hook integration and adds `flutter_scene_generated/` to `flutter.assets`. Preserve any platform-filtered generated-asset entries it adds. Keep source assets in version control and generated output ignored. If `hook/build.dart` already exists, integrate `buildScenes` and `buildMaterials` into its `build()` callback; `init` prints the required block instead of replacing the hook. The generated hook discovers loose images; a custom hook can call `buildTextures` for an explicit image list. Keep one coordinated hook when a raw shader bundle also uses it.
4. First render a built-in `CuboidGeometry` with `UnlitMaterial` in `SceneView.declarative`, using a `SceneMesh` child and a `PerspectiveCamera`. An app-owned `Scene` with `SceneView(scene)` is the equivalent imperative path. `SceneView` waits for shared resources before drawing; a `loadingBuilder` can show a placeholder. Keep geometry, materials, and components stable across rebuilds, and keep an app-owned `Scene` in widget state. Confirm this scene on each target before adding imported assets.
## Verify
Run `flutter analyze` after setup or build-hook changes. Open the small scene on each supported target: native for direct Flutter GPU, and native or web for Scene. Confirm that generated assets load and the first frame renders. Use a device integration test when a platform setup or asset-loading failure needs regression coverage.
## Current references
- [Scene installation and platform settings](references/installation.txt)
- [Scene first scene](references/first-scene.txt)
- [Scene core concepts](references/core-concepts.txt)
- [Flutter GPU Dart API](references/flutter-gpu-api.txt)
- [Scene repository guide](references/scene-readme.txt)
- [Example build hook](examples/build-hook.txt)
- [Example asset declarations](examples/pubspec.txt)
Use the linked current API for exact signatures when editing a project.From mordechai30/flutter-dart-skills, BSD-3-Clause.
More from mordechai30/flutter-dart-skills
- 0.570score
api-review
mordechai30
Reviews the specified code against the canonical API Design guidelines.
SkillAFreshness: AClaude Code +9 - 0.570score
code-review
mordechai30
Performs a comprehensive, multi-step code review of pull requests or local code changes, using iterative refinement (generation, critique, synthesis) to…
SkillAFreshness: AClaude Code +9 - 0.570score
code-documentation
mordechai30
Guide for writing effective code documentation, including docstrings, JSDoc, dartdoc, and implementation comments.
SkillAFreshness: AClaude Code +9 - 0.565score
unix-cli-best-practices
mordechai30
Safe, portable, and efficient command-line patterns for macOS/BSD Unix tools (grep, find, sed, awk, xargs, mdfind, pbcopy, open) and modern alternatives…
SkillAFreshness: AClaude Code +9 - 0.561score
flutter-gpu-scene-setup
mordechai30
Set up a Flutter app for current Flutter GPU and flutter_scene rendering across native and web targets, including the Scene asset build hook.
SkillAFreshness: AClaude Code +9 - 0.561score
natural-writing
mordechai30
Contains well-defined rules for creating natural, accurate, and readable writing.
SkillAFreshness: AClaude Code +9 - 0.561score
dart-build-cli-app
mordechai30
Build Dart command-line tools with sound argument parsing, streams, exit status, packaging, and subprocess behavior.
SkillAFreshness: AClaude Code +9 - 0.561score
flutter-scene-assets-shaders
mordechai30
Import and animate Scene geometry and textures; author current .fmat materials or Flutter GPU shader bundles; bind shader resources from Dart.
SkillAFreshness: AClaude Code +9 - 0.561score
flutter-gpu-scene-rendering
mordechai30
Build efficient Flutter GPU or flutter_scene render loops, including draw state, instancing, attachment formats, and off-screen render-to-texture output.
SkillAFreshness: AClaude Code +9 - 0.559score
dart-resolve-package-conflicts
mordechai30
Diagnose and resolve Dart or Flutter pub dependency conflicts.
SkillAFreshness: AClaude Code +9 - 0.559score
dart-collect-coverage
mordechai30
Collect and inspect LCOV test coverage for Dart or Flutter projects.
SkillAFreshness: AClaude Code +9 - 0.556score
dart-fix-runtime-errors
mordechai30
Diagnose and fix observed Dart or Flutter runtime failures from a stack trace, failing test, or running app.
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Sep 29, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- BSD-3-Clause
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from mordechai30
- 0.570score
code-documentation
mordechai30
Guide for writing effective code documentation, including docstrings, JSDoc, dartdoc, and implementation comments.
SkillAFreshness: AClaude Code +9 - 0.570score
api-review
mordechai30
Reviews the specified code against the canonical API Design guidelines.
SkillAFreshness: AClaude Code +9 - 0.570score
code-review
mordechai30
Performs a comprehensive, multi-step code review of pull requests or local code changes, using iterative refinement (generation, critique, synthesis) to…
SkillAFreshness: AClaude Code +9 - 0.565score
unix-cli-best-practices
mordechai30
Safe, portable, and efficient command-line patterns for macOS/BSD Unix tools (grep, find, sed, awk, xargs, mdfind, pbcopy, open) and modern alternatives…
SkillAFreshness: AClaude Code +9 - 0.561score
flutter-scene-assets-shaders
mordechai30
Import and animate Scene geometry and textures; author current .fmat materials or Flutter GPU shader bundles; bind shader resources from Dart.
SkillAFreshness: AClaude Code +9 - 0.561score
flutter-gpu-scene-rendering
mordechai30
Build efficient Flutter GPU or flutter_scene render loops, including draw state, instancing, attachment formats, and off-screen render-to-texture output.
SkillAFreshness: AClaude Code +9
Cite this page
flutter-gpu-scene-setup skill. Agent Mart. https://agentmart.dev/skills/mordechai30-flutter-gpu-scene-setup-b03440 (last updated 2026-10-24)