搜尋套件、儲存庫與 APP 分類

套件詳情v0.10.2

theta

透過UI即時更新,在生產環境中進行應用程式原型設計與測試。

近 30 天下載
152
喜歡數
41
Pub 分數
60

安裝套件

dart pub add theta

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

Theta 是一個專為快速原型設計與生產測試所設計的 Flutter 套件,支援即時 UI 更新。它讓開發者能立即試用元件與設計變更,無需重新啟動應用程式。透過與現有 Flutter 工作流程無縫整合,Theta 支援元件導向開發,非常適合重視 UI 迴圈與協作的團隊。其輕量級特性和對即時反饋的關注,簡化了開發流程,特別是在設計審查或功能驗證階段尤為實用。

適用情境

  • 快速使用者介面原型設計
  • 即時元件測試
  • 設計系統開發
  • 協作式UI評審
  • 類似生產的測試

主要特色

  • 即時 UI 更新
  • 組件驅動開發
  • 與 Flutter 的無縫整合
  • 即時反饋迴路
  • 所需的最小設定

適合對象

  • UI 設計師
  • 前端開發人員
  • 產品團隊
  • 設計系統創建者
  • 敏捷開發團隊

使用建議

  • 不適用於生產部署
  • 限於開發工作流程
  • 複雜設定需要手動設定
  • 對網頁或桌面平台無官方支援

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Banner

pub github discord contributors

Get started • Documentation • Examples • Community & Support • Website

Theta

Design to Flutter in 1 command.

  • 🦄 Why? Manually coding the entire UI can be time-consuming and costly. Transform your design into Flutter with just one command.
  • 👥 Who? Individual developers and teams aiming for quicker and more visual UI development.

🧙 Design to Flutter

Tree steps:

  1. Build your UI with Theta.

Theta Studio

  1. Navigate to a Flutter project, and open the terminal:

Install Theta CLI.

$ dart pub global activate theta_cli

Link a project by its key.

$ theta link -k <anon key>

You can generate files from design by running:

$ theta gen
  1. Use the generated UI widgets:

Theta will generate the following files

  • /assets
    • /theta_assets
      • theta_preload.json
      • ... all the media
  • /lib
    • theta_ui_assets.g.dart
    • theta_ui_widgets.g.dart

You can use them as normal widgets:

PaywallWidget(
    initialTheme: ThemeMode.light,
)

🟡 Before running your app:

  1. Initialize ThetaClient instance for your project. Write at the root of your app:
await initializeThetaClient();
  1. Add the path in the pubspec.yaml file to theta_assets folder, to access the widget data:
assets: 
    - assets/theta_assets/
Congrats, you have now your UI 🥳

🔴 Live widgets

There is an option for fetching widgets from the back-end in runtime.

You can easily active it by setting isLive: true.

PaywallWidget(
    initialTheme: ThemeMode.light,
    isLive: true,
)

By making it live, you can set A/B testing from Theta's editor or update its content in real-time.


Contributing

See CONTRIBUTING.md for details.

License

Theta is licensed under the Apache License 2.0. See LICENSE for details.

所屬分類

依賴

依賴清單 13 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。