搜索插件、代码仓与 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 项

源码仓库

使用此插件的项目

暂无相关数据。