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
0
Merge Requests
0
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
25a4bc3d
Commit
25a4bc3d
authored
Sep 18, 2019
by
余玠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixbug:解决回调时类型转换异常导致的代码执行不到
parent
e10b101d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
ios/Classes/Engine/FLBFlutterApplication.m
ios/Classes/Engine/FLBFlutterApplication.m
+3
-0
lib/flutter_boost.dart
lib/flutter_boost.dart
+6
-6
No files found.
ios/Classes/Engine/FLBFlutterApplication.m
View file @
25a4bc3d
...
@@ -180,6 +180,9 @@
...
@@ -180,6 +180,9 @@
static
int64_t
sCallbackID
=
1
;
static
int64_t
sCallbackID
=
1
;
cid
=
@
(
sCallbackID
).
stringValue
;
cid
=
@
(
sCallbackID
).
stringValue
;
sCallbackID
+=
2
;
sCallbackID
+=
2
;
NSMutableDictionary
*
newParams
=
[[
NSMutableDictionary
alloc
]
initWithDictionary
:
urlParams
];
[
newParams
setObject
:
cid
?
cid
:
@"__default#0__"
forKey
:
kPageCallBackId
];
urlParams
=
newParams
;
}
}
_callbackCache
[
cid
]
=
resultCallback
;
_callbackCache
[
cid
]
=
resultCallback
;
...
...
lib/flutter_boost.dart
View file @
25a4bc3d
...
@@ -95,25 +95,25 @@ class FlutterBoost {
...
@@ -95,25 +95,25 @@ class FlutterBoost {
ContainerCoordinator
.
singleton
.
registerPageBuilders
(
builders
);
ContainerCoordinator
.
singleton
.
registerPageBuilders
(
builders
);
}
}
Future
<
Map
<
String
,
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
}){
Map
<
String
,
dynamic
>
properties
=
new
Map
<
String
,
dynamic
>();
Map
<
dynamic
,
dynamic
>
properties
=
new
Map
<
dynamic
,
dynamic
>();
properties
[
"url"
]
=
url
;
properties
[
"url"
]
=
url
;
properties
[
"urlParams"
]
=
urlParams
;
properties
[
"urlParams"
]
=
urlParams
;
properties
[
"exts"
]
=
exts
;
properties
[
"exts"
]
=
exts
;
return
channel
.
invokeMethod
<
Map
<
String
,
dynamic
>>(
return
channel
.
invokeMethod
<
Map
<
dynamic
,
dynamic
>>(
'openPage'
,
properties
);
'openPage'
,
properties
);
}
}
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
}){
assert
(
id
!=
null
);
assert
(
id
!=
null
);
BoostContainerSettings
settings
=
containerManager
?.
onstageSettings
;
BoostContainerSettings
settings
=
containerManager
?.
onstageSettings
;
Map
<
String
,
dynamic
>
properties
=
new
Map
<
String
,
dynamic
>();
Map
<
dynamic
,
dynamic
>
properties
=
new
Map
<
dynamic
,
dynamic
>();
if
(
exts
==
null
){
if
(
exts
==
null
){
exts
=
Map
<
String
,
dynamic
>();
exts
=
Map
<
dynamic
,
dynamic
>();
}
}
exts
[
"params"
]
=
settings
.
params
;
exts
[
"params"
]
=
settings
.
params
;
...
...
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