flutter-desktop-embedding - 如何生成" build / flutter_assets"

时间:2018-03-10 07:59:37

标签: flutter

构建https://github.com/google/flutter-desktop-embedding确定。

嵌入使用Flutter项目中的build/flutter_assets进行嵌入。 https://github.com/google/flutter-desktop-embedding/blob/master/linux/example/flutter_embedder_example.cc#L35

但是Flutter项目是如何生成的呢?

flutter build

实际上我设法构建build/flutter_assets一次并且嵌入工作(很酷的东西),但现在我不能再复制了,有点奇怪。

1 个答案:

答案 0 :(得分:2)

linux lib的make执行示例项目的flutter build命令。

选择此flutter构建命令会在要嵌入的flutter项目中生成build/flutter_assets。命令是:

flutter build flx \
 --local-engine-src-path=../../engine/src \
 --local-engine=host_debug_unopt

已通过此问题解决https://github.com/google/flutter-desktop-embedding/issues/19