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
fb802ed1
Commit
fb802ed1
authored
5 years ago
by
zjq
Committed by
justin
5 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Git pick
73ccc45c
parent
c67924c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
6 deletions
+22
-6
lib/flutter_boost.dart
lib/flutter_boost.dart
+22
-6
No files found.
lib/flutter_boost.dart
View file @
fb802ed1
...
...
@@ -89,15 +89,31 @@ class FlutterBoost {
});
}
static
TransitionBuilder
init
({
TransitionBuilder
builder
,
PrePushRoute
prePush
,
PostPushRoute
postPush
,
})
{
static
ContainerManagerState
get
containerManager
=>
_instance
.
containerManagerKey
.
currentState
;
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"
))
{
ContainerCoordinator
.
singleton
.
nativeContainerDidShow
(
pageInfo
[
"name"
],
pageInfo
[
"params"
],
pageInfo
[
"uniqueId"
]);
}
});
});
}
static
TransitionBuilder
init
(
{
TransitionBuilder
builder
,
PrePushRoute
prePush
,
PostPushRoute
postPush
})
{
if
(
Platform
.
isAndroid
)
{
onPageStart
();
}
else
if
(
Platform
.
isIOS
)
{
// TODO(AlexVincent525): 未解之谜
assert
(()
{
()
async
{
onPageStart
();
...
...
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