Skip to main content

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

Flutter hot update runtime: loads build-time generated JS patch modules to render components and drive logic in JS, while rendering still happens on native Flutter.

0.1.1 #

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

0.1.0 #

  • 首个版本。
  • JsUiWidget 宿主渲染 + JS 侧 __jsui 运行时(element / component / reconciler / context / commit)。
  • 状态语义(provider / setState / 其它状态库)全部在 JS 侧实现,宿主不感知状态库。
  • 补丁源支持 asset 路径与 http(s) zip 网络补丁包。
  • JsWidgetRegistry 负责 JS 结点 → Flutter widget 映射,JsUiStore 负责增量补丁应用。
  • JS → 原生能力统一走「宿主方法」:JS 侧唯一出口 _app_host_.invoke,宿主侧唯一入口 registerHostMethod(@HostInjected 方法由生成器注册,内建 log / nativeToast / jsuiCommit 自动注册)。
  • 每个实例按 pageKey 在全局单例运行时(JsRuntimeManager.instance)里隔离根(结点树 / provider / 订阅 / 脏队列),支持同屏多实例。
1
likes
0
points
207
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter hot update runtime: loads build-time generated JS patch modules to render components and drive logic in JS, while rendering still happens on native Flutter.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

archive, cached_network_image, crypto, easy_refresh, flutter, flutter_js, path_provider

More

Packages that depend on hot_patch