Commit 6050e4c1 authored by 余玠's avatar 余玠

这段代码似乎没有用处,先删除

parent c159c0f3
...@@ -60,19 +60,19 @@ class FlutterBoost { ...@@ -60,19 +60,19 @@ class FlutterBoost {
PrePushRoute prePush, PrePushRoute prePush,
PostPushRoute postPush}) { PostPushRoute postPush}) {
WidgetsBinding.instance.addPostFrameCallback((_){ // WidgetsBinding.instance.addPostFrameCallback((_){
singleton.channel.invokeMethod<Map>('pageOnStart').then((Map pageInfo){ // singleton.channel.invokeMethod<Map>('pageOnStart').then((Map pageInfo){
if (pageInfo == null || pageInfo.isEmpty) return; // if (pageInfo == null || pageInfo.isEmpty) return;
if (pageInfo.containsKey("name") && // if (pageInfo.containsKey("name") &&
pageInfo.containsKey("params") && // pageInfo.containsKey("params") &&
pageInfo.containsKey("uniqueId")) { // pageInfo.containsKey("uniqueId")) {
ContainerCoordinator.singleton.nativeContainerDidShow( // ContainerCoordinator.singleton.nativeContainerDidShow(
pageInfo["name"], pageInfo["params"], pageInfo["uniqueId"]); // pageInfo["name"], pageInfo["params"], pageInfo["uniqueId"]);
} // }
}); // });
}); // });
return (BuildContext context, Widget child) { return (BuildContext context, Widget child) {
assert(child is Navigator, 'child must be Navigator, what is wrong?'); assert(child is Navigator, 'child must be Navigator, what is wrong?');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment