Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
flutter_boost_1.22.4
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李增强
flutter_boost_1.22.4
Commits
a901700f
Commit
a901700f
authored
Jun 26, 2019
by
Jidong Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
interface paramter type.
parent
23d41278
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
11 deletions
+9
-11
ios/Classes/Messaging/BoostMessageChannel.mm
ios/Classes/Messaging/BoostMessageChannel.mm
+2
-4
lib/flutter_boost.dart
lib/flutter_boost.dart
+4
-4
lib/messaging/boost_message_channel.dart
lib/messaging/boost_message_channel.dart
+1
-1
lib/router/router.dart
lib/router/router.dart
+2
-2
No files found.
ios/Classes/Messaging/BoostMessageChannel.mm
View file @
a901700f
...
...
@@ -26,8 +26,8 @@
#import "BoostMessageChannel.h"
#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
];
...
...
lib/flutter_boost.dart
View file @
a901700f
...
...
@@ -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
;
...
...
lib/messaging/boost_message_channel.dart
View file @
a901700f
...
...
@@ -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
){
...
...
lib/router/router.dart
View file @
a901700f
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment