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

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

parent c159c0f3
......@@ -60,19 +60,19 @@ class FlutterBoost {
PrePushRoute prePush,
PostPushRoute postPush}) {
WidgetsBinding.instance.addPostFrameCallback((_){
singleton.channel.invokeMethod<Map>('pageOnStart').then((Map pageInfo){
if (pageInfo == null || pageInfo.isEmpty) return;
if (pageInfo.containsKey("name") &&
pageInfo.containsKey("params") &&
pageInfo.containsKey("uniqueId")) {
ContainerCoordinator.singleton.nativeContainerDidShow(
pageInfo["name"], pageInfo["params"], pageInfo["uniqueId"]);
}
});
});
// WidgetsBinding.instance.addPostFrameCallback((_){
// singleton.channel.invokeMethod<Map>('pageOnStart').then((Map pageInfo){
// if (pageInfo == null || pageInfo.isEmpty) return;
// if (pageInfo.containsKey("name") &&
// pageInfo.containsKey("params") &&
// pageInfo.containsKey("uniqueId")) {
// ContainerCoordinator.singleton.nativeContainerDidShow(
// pageInfo["name"], pageInfo["params"], pageInfo["uniqueId"]);
// }
// });
// });
return (BuildContext context, Widget child) {
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