hot_patch_generator 0.1.0
hot_patch_generator: ^0.1.0 copied to clipboard
读取 @PatchEntry注解,把 Flutter widget 静态翻译为与源文件同名的 JS 模块(包级 widget 工厂 + 组件类),供 hot_patch 运行时热更渲染。
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add hot_patch_generatorThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
hot_patch_generator: ^0.1.0Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:hot_patch_generator/builder.dart';