flutter-duit-bdui

Integrate Duit into Flutter apps with HTTP or WebSocket transports for server-driven UI.

6|2|Updated Aug 14, 2025
One-click install
npx skills add https://github.com/Im5tu/claude --skill flutter-duit-bdui-im5tu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: flutter-duit-bdui
Source: https://github.com/Im5tu/claude/tree/main/skills/flutter-duit-bdui
Command: npx skills add https://github.com/Im5tu/claude --skill flutter-duit-bdui-im5tu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Backend-driven UI enables server-defined layout and data for Flutter apps, reducing client-side release cycles.

Core Features & Use Cases

  • Integration of Duit into Flutter apps, including setup and driver configuration.
  • HTTP and WebSocket transports for live UI updates.
  • Custom widgets and themes driven by server-provided JSON layouts.
  • Use case: rapidly prototype and deploy UI changes without app updates.

Quick Start

  1. Add dependency to pubspec.yaml: flutter_duit and run flutter pub get.
  2. Initialize DuitRegistry and (optionally) themes or custom widgets.
  3. Create a DuitViewHost with a suitable XDriver (HTTP/WebSocket/Static) and connect to the Duit server.
  4. Build your UI using Duit-provided layouts delivered from the server.

Frequently Asked Questions about flutter-duit-bdui

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement backend-driven UI in Flutter to update layouts without app releases?

Backend-driven UI in Flutter is implemented by integrating the Duit framework to render server-provided JSON layouts. You initialize DuitRegistry, configure an XDriver for HTTP or WebSocket transport, and use DuitViewHost to dynamically build your app's UI from server data.

How does Duit handle live UI updates using WebSocket transport?

Duit handles live UI updates by configuring an XDriver with WebSocket transport to maintain a persistent connection. This allows the server to push real-time JSON layout and data changes directly to the Flutter app, updating the interface dynamically without requiring client-side updates.

Can I use custom widgets and themes with server-driven JSON layouts in Flutter?

Yes, you can use custom widgets and themes with server-driven JSON layouts by registering them during initialization. Initializing DuitRegistry allows you to map server-provided JSON definitions to specific custom Flutter widgets and apply server-driven themes.

What is the best way to configure HTTP transport for server-driven UIs in Flutter?

The best way to configure HTTP transport for server-driven UIs is to create a DuitViewHost and attach an HTTP-configured XDriver. This connects your Flutter app to the Duit server, fetching JSON layouts and data to render the UI while managing standard request-response cycles.

What are the setup requirements for integrating Duit into a Flutter project?

Setup requires adding the flutter_duit dependency to your pubspec.yaml file and running flutter pub get. After installation, you initialize DuitRegistry and configure your XDriver transports before rendering server-provided JSON layouts through DuitViewHost.