Last updated 3 years ago
为了将 Flutter 嵌入原生项目,我们需要创建一个 Flutter Module
flutter create -t module 你的module名字比如my_module命名要符合规范
flutter_application_path = 'flutter Module 路径' load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb') target 'FlutterDemo' do # Comment the next line if you don't want to use dynamic frameworks use_frameworks! end
配置完成后 pod install