Skip to main content

hot_patch_generator 0.1.1 copy "hot_patch_generator: ^0.1.1" to clipboard
hot_patch_generator: ^0.1.1 copied to clipboard

Build-time generator that statically translates @PatchEntry-annotated Flutter widgets into matching JS modules (widget factories + component classes) for the hot_patch runtime.

0.1.1 #

  • 补充 repository 字段,修复 pana 仓库校验失败导致的 pub.dev 页面无 GitHub 地址。
  • description 改为英文,满足 pub.dev 对英文描述的要求(中文描述会被 pana 扣分)。
  • README 提供中英双语,顶部可切换。

0.1.0 #

  • 首个版本。
  • 把带 @PatchEntry 注解的 Flutter widget 静态翻译为与 Dart 源文件同名的 JS 模块 (analyzer 静态解析,不执行任何 Dart 代码)。
  • 产物按文件内容分流:组件产物 / 普通类与静态单例产物;都不含则不产出。
  • package 级 widget 工厂模块:一个 package 一个文件(patch/flutter.js、 patch/provider.js),共享结点工厂 __h 全局只定义一次。
  • 事件绑定在构建期注入,归属与 Dart tear-off 语义一致。
  • 内置 widget 策略注册表;新增 / 自定义 widget 只需实现 WidgetTranslator 并注册,核心代码零改动。
  • package 级模块与 patch 清单都挂在包根伪资产 $package$ 下,使用方无需种子文件或额外配置。
1
likes
0
points
204
downloads

Publisher

unverified uploader

Weekly Downloads

Build-time generator that statically translates @PatchEntry-annotated Flutter widgets into matching JS modules (widget factories + component classes) for the hot_patch runtime.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analyzer, build, crypto, glob

More

Packages that depend on hot_patch_generator