IOS打开flutter页面,并传值
首先,创建Flutter module;为已存在的iOS应用添加Flutter module依赖;
创建flutter_module, flutter_module和IOS项目同级
flutter create -t module flutter_module
为已存在的iOS应用添加Flutter module依赖
1 创建Podfile: pod init
2 PodfilePodfilePodfile的参考配置:
# Step1:添加
flutter_application_path = '../flutter_module/'
load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')
target 'FlutterHybridiOS' do
# Step2 添加
install_all_flutter_pods(flutter_application_pa
共有 0 条评论