alibaba / flutter_boost

FlutterBoost is a Flutter plugin which enables hybrid integration of Flutter for your existing native apps with minimum efforts
https://github.com/alibaba/flutter_boost
MIT License
6.98k stars 1.23k forks source link

iOS OC FlutterBoostRouteOptions onPageFinished 不回调 #1677

Open fanhaofei1234 opened 2 years ago

fanhaofei1234 commented 2 years ago

原生页面 调用:option.onPageFinished [[FlutterBoost instance]open:options];

flutter调用: BoostNavigator.instance.pop({"callBack" : "testPage2"});

onPageFinished没有回到

版本: flutter: 3.0.4 flutter_boost: v3.0-null-safety-release.2.1

wxzhuanshu commented 2 years ago

你好 我也遇到了 你的问题解决了吗

MMMMiller commented 11 months ago

找到原因了, example没在delegate里记录回调。解决方法如下,供参考: 在pushFlutterRoute方法中记录onPageFinished,例如resultTable[options.pageName] = options.onPageFinished; 然后在popRoute方法中触发onPageFinished,if let onPageFinished = resultTable[options.pageName] { onPageFinished(options.arguments) resultTable.removeValue(forKey: options.pageName) }