flutter_boost icon indicating copy to clipboard operation
flutter_boost copied to clipboard

iOS OC FlutterBoostRouteOptions onPageFinished 不回调

Open fanhaofei1234 opened this issue 2 years ago • 2 comments

原生页面 调用: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

fanhaofei1234 avatar Jul 13 '22 07:07 fanhaofei1234

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

wxzhuanshu avatar Oct 11 '22 03:10 wxzhuanshu

找到原因了, 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) }

MMMMiller avatar Dec 18 '23 15:12 MMMMiller