Commit a901700f authored by Jidong Chen's avatar Jidong Chen

interface paramter type.

parent 23d41278
......@@ -27,7 +27,7 @@
#import "FlutterBoostPlugin_private.h"
@implementation BoostMessageChannel
@implementation BoostMessageChannel
+ (NSMutableDictionary *)lists{
static NSMutableDictionary *_list = nil;
......@@ -87,8 +87,6 @@
}
}
+ (void)onNativePageResult:(void (^)(NSNumber *))result uniqueId:(NSString *)uniqueId key:(NSString *)key resultData:(NSDictionary *)resultData params:(NSDictionary *)params
{
NSMutableDictionary *tmp = [NSMutableDictionary dictionary];
......
......@@ -51,7 +51,7 @@ class FlutterBoost {
GlobalKey<ContainerManagerState>();
final ObserversHolder _observersHolder = ObserversHolder();
final Router _router = Router();
final MethodChannel _methodChannel = MethodChannel('flutter_boost_method');
final MethodChannel _methodChannel = MethodChannel('flutter_boost');
int _callbackID = 0;
......@@ -140,7 +140,7 @@ class FlutterBoost {
ContainerCoordinator.singleton.registerPageBuilders(builders);
}
Future<Map<dynamic,dynamic>> open(String url,{Map<String,dynamic> urlParams,Map<String,dynamic> exts}){
Future<Map<dynamic,dynamic>> open(String url,{Map<dynamic,dynamic> urlParams,Map<dynamic,dynamic> exts}){
if(urlParams == null) {
urlParams = Map();
}
......@@ -152,7 +152,7 @@ class FlutterBoost {
return _router.open(url,urlParams: urlParams,exts: exts);
}
Future<bool> close(String id,{Map<String,dynamic> result,Map<String,dynamic> exts}){
Future<bool> close(String id,{Map<dynamic,dynamic> result,Map<dynamic,dynamic> exts}){
if(result == null) {
result = Map();
}
......@@ -172,7 +172,7 @@ class FlutterBoost {
BoostMessageChannel.sendEvent(name, arguments);
}
Future<Map<String,dynamic>> openPage(String name, Map params,{bool animated}) {
Future<Map<dynamic,dynamic>> openPage(String name, Map params,{bool animated}) {
Map<String,dynamic> exts = Map();
if(animated != null){
exts["animated"] = animated;
......
......@@ -128,7 +128,7 @@ class BoostMessageChannel {
});
}
static Future<bool> closePage(String uniqueId,{Map<String,dynamic> result,Map<String,dynamic> exts}) {
static Future<bool> closePage(String uniqueId,{Map<dynamic,dynamic> result,Map<dynamic,dynamic> exts}) {
Map<String,dynamic> properties = new Map<String,dynamic>();
properties["uniqueId"]=uniqueId;
if(result != null){
......
......@@ -30,11 +30,11 @@ import 'package:flutter_boost/messaging/boost_message_channel.dart';
class Router {
Future<Map<dynamic,dynamic>> open(String url,{Map<String,dynamic> urlParams,Map<String,dynamic> exts}){
Future<Map<dynamic,dynamic>> open(String url,{Map<dynamic,dynamic> urlParams,Map<dynamic,dynamic> exts}){
return BoostMessageChannel.openPage(url,urlParams, exts);
}
Future<bool> close(String id,{Map<String,dynamic> result,Map<String,dynamic> exts}){
Future<bool> close(String id,{Map<dynamic,dynamic> result,Map<dynamic,dynamic> exts}){
return BoostMessageChannel.closePage(id,result:result,exts: exts);
}
......
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