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
daaa7d83
Commit
daaa7d83
authored
Jun 15, 2020
by
justin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决代码冲突问题
parent
609250be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
25 deletions
+1
-25
lib/flutter_boost.dart
lib/flutter_boost.dart
+1
-25
No files found.
lib/flutter_boost.dart
View file @
daaa7d83
...
...
@@ -58,36 +58,12 @@ class FlutterBoost {
static
FlutterBoost
get
singleton
=>
_instance
;
static
ContainerManagerState
get
containerManager
=>
_instance
.
containerManagerKey
.
currentState
;
final
GlobalKey
<
ContainerManagerState
>
containerManagerKey
=
GlobalKey
<
ContainerManagerState
>();
final
ObserversHolder
_observersHolder
=
ObserversHolder
();
final
BoostChannel
_boostChannel
=
BoostChannel
();
static
void
onPageStart
()
{
WidgetsBinding
.
instance
.
addPostFrameCallback
((
Duration
_
)
{
singleton
.
channel
.
invokeMethod
<
Map
<
dynamic
,
dynamic
>>(
'pageOnStart'
)
.
then
((
Map
<
dynamic
,
dynamic
>
_pageInfo
)
{
final
Map
<
String
,
dynamic
>
pageInfo
=
_pageInfo
?.
cast
<
String
,
dynamic
>();
if
(
pageInfo
?.
isEmpty
??
true
)
{
return
;
}
if
(
pageInfo
.
containsKey
(
'name'
)
&&
pageInfo
.
containsKey
(
'params'
)
&&
pageInfo
.
containsKey
(
'uniqueId'
))
{
ContainerCoordinator
.
singleton
.
nativeContainerDidShow
(
pageInfo
[
'name'
]
as
String
,
(
pageInfo
[
'params'
]
as
Map
<
dynamic
,
dynamic
>)
?.
cast
<
String
,
dynamic
>(),
pageInfo
[
'uniqueId'
]
as
String
,
);
}
});
});
}
static
ContainerManagerState
get
containerManager
=>
_instance
.
containerManagerKey
.
currentState
;
...
...
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