hot_patch 0.1.0
hot_patch: ^0.1.0 copied to clipboard
Flutter 热更新运行时:加载构建期生成的 JS 补丁渲染组件、由 JS 驱动逻辑,渲染仍在原生 Flutter 侧。
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add hot_patchWith Flutter:
$ flutter pub add hot_patchThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
hot_patch: ^0.1.0Alternatively, your editor might support dart pub get or flutter 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/hot_patch.dart';