Commit 8a91d818 authored by 余玠's avatar 余玠 Committed by Luke

返回值也要改成dynamic

parent e149aa2e
...@@ -120,13 +120,13 @@ class FlutterBoost { ...@@ -120,13 +120,13 @@ class FlutterBoost {
ContainerCoordinator.singleton.registerPageBuilders(builders); ContainerCoordinator.singleton.registerPageBuilders(builders);
} }
Future<Map<dynamic, dynamic>> open(String url, Future<Map<String, dynamic>> open(String url,
{Map<String, dynamic> urlParams, Map<String, dynamic> exts}) { {Map<String, dynamic> urlParams, Map<String, dynamic> exts}) {
Map<dynamic, dynamic> properties = new Map<String, dynamic>(); Map<String, dynamic> properties = new Map<String, dynamic>();
properties["url"] = url; properties["url"] = url;
properties["urlParams"] = urlParams; properties["urlParams"] = urlParams;
properties["exts"] = exts; properties["exts"] = exts;
return channel.invokeMethod<Map<dynamic, dynamic>>('openPage', properties); return channel.invokeMethod<Map<String, dynamic>>('openPage', properties);
} }
Future<bool> close(String id, Future<bool> close(String id,
...@@ -134,7 +134,7 @@ class FlutterBoost { ...@@ -134,7 +134,7 @@ class FlutterBoost {
assert(id != null); assert(id != null);
BoostContainerSettings settings = containerManager?.onstageSettings; BoostContainerSettings settings = containerManager?.onstageSettings;
Map<dynamic, dynamic> properties = new Map<String, dynamic>(); Map<String, dynamic> properties = new Map<String, dynamic>();
if (exts == null) { if (exts == null) {
exts = Map<String, dynamic>(); exts = Map<String, dynamic>();
......
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