Commit d4209aba authored by 余玠's avatar 余玠

add log to debug

parent b938473e
......@@ -60,19 +60,20 @@ 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;
print("[DEBUG]-should i ContainerCoordinator.singleton.nativeContainerDidShow again?");
// 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