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
d6e1c919
Commit
d6e1c919
authored
4 years ago
by
shaode.lsd
Committed by
justin
4 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix hotreload时因为类型转换出错带来的白屏问题
parent
2667fd64
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
lib/flutter_boost.dart
lib/flutter_boost.dart
+13
-7
No files found.
lib/flutter_boost.dart
View file @
d6e1c919
...
...
@@ -70,14 +70,20 @@ class FlutterBoost {
static
void
onPageStart
()
{
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"
))
{
singleton
.
channel
.
invokeMethod
<
Map
<
dynamic
,
dynamic
>>(
'pageOnStart'
)
.
then
((
Map
<
dynamic
,
dynamic
>
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"
]);
pageInfo
[
'name'
]
as
String
,
(
pageInfo
[
'params'
]
as
Map
<
dynamic
,
dynamic
>)
.
cast
<
String
,
dynamic
>(),
pageInfo
[
'uniqueId'
]
as
String
);
}
});
});
...
...
This diff is collapsed.
Click to expand it.
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