flutter_duit
Duit - 驅動的 UI 工具包 | Flutter 的伺服器驅動 UI 架構
- 星標
- 60
- 分支
- 5
- 最近推送(UTC)
- 2026年5月15日
- 專案狀態
- 未封存
原始 README
以下為英文專案原文快照,最新內容請造訪 GitHub。
[!Warning] Development Freezed
I'm tired, i'm go away
Duit - drived UI tooklit
Duit is an actively growing open-source ecosystem of libraries and tools aimed at helping developers easily and effectively implement the backend-driven UI approach in their Flutter-based applications.
The framework consists of several parts:
- Flutter package
- Go DSL
- TypeScript DSL
Are you using Duit in production? [Contact us](mailto://duit_foundation@gmail.com) and tell us about your experience
Core features
- Flexible framework architecture that allows easy integration with new and existing Flutter applications
- Support for different network protocols (http, websocket) with extension ability
- Event-drived state management with Actions & Events API
- Ability to add your own custom widgets on the Flutter and backend side
- Powerful templating system (Components) to reduce json size and code coherence
- Ability to execute dynamically passed scripts in the integrated runtime environment to create dynamically changing business logic
Learn more Duit features on our website
Usage example
- Install flutter_duit
flutter pub add flutter_duit
- Create DuitDriver instance.
It is responsible for displaying the UI, updating the state of widgets, and calling widget-related actions.
final driver = XDriver.remote(
transportManager: HttpTransportManager(
url: "/layout",
baseUrl: "http://localhost:3000",
defaultHeaders: {
"Content-Type": "application/json",
},
),
);
- Embed the DuitViewHost widget into your application in the build method.
DuitViewHost.withDriver(
driver: driver,
placeholder: const CircularProgressIndicator(),
),
Monorepo structure
| Package | Description | Path |
|---|---|---|
flutter_duit |
Core framework and widget collection | packages/flutter_duit |
flutter_duit_material |
Material Design widget collection for flutter_duit | packages/flutter_duit_material |
flutter_duit_cupertino |
Cupertino widget collection for flutter_duit | packages/flutter_duit_cupertino |
Project roadmap
- New event types
- Expanding the widget collection
- Increasing unit test coverage of the code base
- Expansion and improvement of documentation quality
- New DSL (eg. for Dart)
Learn more about project state
Contributors
Stargazers over time
License
MIT
語言DartMakefileSwiftKotlinObjective-C
分類
如何選擇適合專案的儲存庫?
先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
- 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
- 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
- 使用前在 GitHub 確認 README、授權條款與 Issues。
來源與維護
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗