搜索插件、代码仓与 APP 分类

插件详情v0.1.0-dev.8

umbra_cli

Umbra CLI 允许 Flutter 开发者创建自己的着色器,并将其编译为强类型 Dart 文件。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
29
喜欢数
35
Pub 分数
120

安装插件

flutter pub add umbra_cli

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

Umbra CLI 是 Flutter 开发人员创建自定义着色器并将其自动编译为强类型 Dart 文件的工具。它通过将着色器代码抽象为可用的 Dart 类,简化了高级视觉效果的集成,从而在多个平台上实现动态且高性能的图形效果。该工具专为处理背景效果、渐变和实时可视化效果的开发人员设计,通过减少样板代码并提高类型安全性,提升了工作流程效率。该工具支持 Android、iOS、Web、macOS、Windows 和 Linux,非常适合需要丰富图形内容的跨平台项目。

适合场景

  • 创建自定义渐变效果
  • 实现动态背景视觉效果
  • 使用着色器构建交互式用户界面元素
  • 开发性能优化的图形
  • 在跨平台应用中集成复杂的视觉效果

主要特点

  • 从着色器自动生成类型化的 Dart 类
  • 支持多个目标平台
  • 减少着色器集成样板代码
  • 强制执行着色器使用中的类型安全
  • 简化着色器生命周期管理

适合对象

  • Flutter 开发人员构建视觉丰富的应用程序
  • 需要一致着色器工作流程的团队
  • 需要高性能图形的项目
  • 使用动态背景或动画的开发人员
  • 跨平台应用程序创建者使用自定义着色器

使用建议

  • 需要熟悉 GLSL 着色器语法
  • 使用大型着色器集时可能会增加构建时间
  • 受限于 Flutter 的渲染管道
  • 最适合非简单视觉效果
  • 需要在项目构建过程中进行正确设置

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Umbra

umbra coverage style: very good analysis License: MIT Powered by Mason


The visual editor for shaders in Flutter.

umbra /ˈʌmbrə/

noun:

  1. the fully shaded inner region of a shadow cast by an opaque object, especially the area on the earth or moon experiencing the total phase of an eclipse.
  2. LITERARY
    shadow or darkness.
    "an impenetrable umbra seemed to fill every inch of the museum"

Packages

Package Pub
umbra pub package
umbra_cli pub package
umbra_flutter pub package

Quick start

For a getting started with Umbra check out the getting started section in the docs.

# 🎯 Activate from https://pub.dev
dart pub global activate umbra_cli

# 🚀 Install umbra dependencies
umbra install-deps

# 🕶️ Create your first shader
umbra create hello_world

# 📦 Compile your first shader to a Dart file
umbra generate shaders/hello_world.glsl --output lib/shaders/

Documentation

For the documentation that describes how you should writing shaders that are compatible with Umbra tooling, see the Shader Specifications documentation.

Documentation about the CLI can be found here.

Articles

If you are looking for more general information about shaders in Flutter, here is a list of articles:

所属分类

依赖

依赖清单 8 项

源码仓库

使用此插件的项目

暂无相关数据。