Index of every page on this site: llms.txt
All skills
madteacher avatar

/flutter-duit-bdui

@2fb67e3
Run it yourself

Integrate, fix, review, migrate, test, or debug Duit / flutter_duit backend-driven UI in Flutter applications. Use when a task mentions DUIT, flutter_duit, backend-driven UI, BDUI, server-driven UI, XDriver, DuitViewHost, DuitRegistry, HTTP or WebSocket transports, custom Duit widgets, components, capability delegates, compile-time DUIT flags, or rendering JSON layouts from a backend.

Use this Skill: https://skilld.dev/gh/madteacher/mad-agents-skills/flutter-duit-bdui

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencestroubleshooting.md

≈456 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Troubleshooting

Use this reference when a Duit screen fails to render, initialize, update, or clean up correctly.

Widget Not Rendering

  • Confirm the server JSON has a supported type, a stable unique id, and the expected attributes shape.
  • For custom widgets, confirm registration runs before the layout is rendered.
  • Keep duit:throw-on-unspecified-widget-type=true during development when schema errors should fail loudly.
  • Render a minimal XDriver.static layout to separate framework setup issues from backend payload issues.

Driver Initialization Failing

  • Verify the installed flutter_duit version and constructor shape.
  • Verify baseUrl, route, auth headers, and server response content type.
  • Check whether the project expects relative routes such as /layout plus baseUrl, or a fully composed URL.
  • Add loading and error UI around DuitViewHost.withDriver when the current API supports it.

Theme Or Component Not Applying

  • Confirm theme/component registration happens before runApp or before the first Duit layout that uses it.
  • Verify the JSON tag/name matches the registered Dart-side identifier exactly.
  • Check that dynamic refs point to existing keys in the component data.

Memory Leaks Or Repeated Requests

  • Do not create drivers inside build.
  • Dispose XDriver in the matching lifecycle owner.
  • Dispose custom transport managers, stream subscriptions, controllers, and native handles in releaseResources or the owning lifecycle method.

Validation Checklist

  • flutter pub get after dependency changes.
  • dart format on edited Dart files.
  • flutter analyze.
  • Focused tests or flutter test for shared behavior.
  • Manual or automated render smoke test for at least one static layout and, when applicable, one remote layout.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning2mo5 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill facilitates the integration of a backend-driven UI framework in Flutter. It inherently handles data from external sources and supports embedded scripting, which presents potential surfaces for indirect prompt injection and dynamic execution if the data source is untrusted.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

  • Runlayer9mo

    5/5 files flagged

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 2fb67e3. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Dormantupdated 7 months ago

README badge

README badge for madteacher/mad-agents-skills/flutter-duit-bdui