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
6050e4c1
Commit
6050e4c1
authored
Aug 24, 2019
by
余玠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
这段代码似乎没有用处,先删除
parent
c159c0f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
lib/flutter_boost.dart
lib/flutter_boost.dart
+13
-13
No files found.
lib/flutter_boost.dart
View file @
6050e4c1
...
...
@@ -60,19 +60,19 @@ class FlutterBoost {
PrePushRoute
prePush
,
PostPushRoute
postPush
})
{
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"
]);
}
});
});
//
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"]);
//
}
//
});
//
});
return
(
BuildContext
context
,
Widget
child
)
{
assert
(
child
is
Navigator
,
'child must be Navigator, what is wrong?'
);
...
...
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