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
8e7b26dd
Commit
8e7b26dd
authored
Aug 29, 2019
by
yangwu.jia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除engine lazy的启动模式
parent
e64f6a31
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
16 deletions
+1
-16
android/src/main/java/com/idlefish/flutterboost/interfaces/IPlatform.java
.../java/com/idlefish/flutterboost/interfaces/IPlatform.java
+0
-1
example/android/app/src/main/java/com/taobao/idlefish/flutterboostexample/MyApplication.java
...om/taobao/idlefish/flutterboostexample/MyApplication.java
+1
-1
lib/flutter_boost.dart
lib/flutter_boost.dart
+0
-14
No files found.
android/src/main/java/com/idlefish/flutterboost/interfaces/IPlatform.java
View file @
8e7b26dd
...
@@ -37,7 +37,6 @@ public interface IPlatform {
...
@@ -37,7 +37,6 @@ public interface IPlatform {
int
IMMEDIATELY
=
0
;
//立即启动引擎
int
IMMEDIATELY
=
0
;
//立即启动引擎
int
ANY_ACTIVITY_CREATED
=
1
;
//当有任何Activity创建时,启动引擎
int
ANY_ACTIVITY_CREATED
=
1
;
//当有任何Activity创建时,启动引擎
int
LAZY
=
2
;
//尽可能延后启动引擎(通常是首页Flutter页面加载时)
/**
/**
* get current application
* get current application
...
...
example/android/app/src/main/java/com/taobao/idlefish/flutterboostexample/MyApplication.java
View file @
8e7b26dd
...
@@ -52,7 +52,7 @@ public class MyApplication extends FlutterApplication {
...
@@ -52,7 +52,7 @@ public class MyApplication extends FlutterApplication {
@Override
@Override
public
int
whenEngineStart
()
{
public
int
whenEngineStart
()
{
return
LAZY
;
return
ANY_ACTIVITY_CREATED
;
}
}
});
});
}
}
...
...
lib/flutter_boost.dart
View file @
8e7b26dd
...
@@ -60,20 +60,6 @@ class FlutterBoost {
...
@@ -60,20 +60,6 @@ class FlutterBoost {
PrePushRoute
prePush
,
PrePushRoute
prePush
,
PostPushRoute
postPush
})
{
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"]);
// }
});
});
return
(
BuildContext
context
,
Widget
child
)
{
return
(
BuildContext
context
,
Widget
child
)
{
assert
(
child
is
Navigator
,
'child must be Navigator, what is wrong?'
);
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