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
68b8a0d0
Commit
68b8a0d0
authored
Aug 28, 2019
by
yangwu.jia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决空指针问题
parent
86dca9fb
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
589 additions
and
2 deletions
+589
-2
android/src/main/java/com/idlefish/flutterboost/BoostFlutterView.java
...main/java/com/idlefish/flutterboost/BoostFlutterView.java
+8
-2
android/src/main/java/com/idlefish/flutterboost/XFlutterView.java
...src/main/java/com/idlefish/flutterboost/XFlutterView.java
+581
-0
No files found.
android/src/main/java/com/idlefish/flutterboost/BoostFlutterView.java
View file @
68b8a0d0
...
@@ -33,6 +33,7 @@ import android.view.Gravity;
...
@@ -33,6 +33,7 @@ import android.view.Gravity;
import
android.view.View
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.view.ViewGroup
;
import
android.view.ViewTreeObserver
;
import
android.view.ViewTreeObserver
;
import
android.view.accessibility.AccessibilityNodeProvider
;
import
android.widget.FrameLayout
;
import
android.widget.FrameLayout
;
import
android.widget.LinearLayout
;
import
android.widget.LinearLayout
;
import
android.widget.ProgressBar
;
import
android.widget.ProgressBar
;
...
@@ -46,12 +47,13 @@ import java.util.List;
...
@@ -46,12 +47,13 @@ import java.util.List;
import
io.flutter.embedding.android.FlutterView
;
import
io.flutter.embedding.android.FlutterView
;
import
io.flutter.plugin.platform.PlatformPlugin
;
import
io.flutter.plugin.platform.PlatformPlugin
;
import
io.flutter.view.AccessibilityBridge
;
public
class
BoostFlutterView
extends
FrameLayout
{
public
class
BoostFlutterView
extends
FrameLayout
{
private
BoostFlutterEngine
mFlutterEngine
;
private
BoostFlutterEngine
mFlutterEngine
;
private
FlutterView
mFlutterView
;
private
X
FlutterView
mFlutterView
;
private
PlatformPlugin
mPlatformPlugin
;
private
PlatformPlugin
mPlatformPlugin
;
...
@@ -116,7 +118,7 @@ public class BoostFlutterView extends FrameLayout {
...
@@ -116,7 +118,7 @@ public class BoostFlutterView extends FrameLayout {
mPlatformPlugin
=
new
PlatformPlugin
((
Activity
)
getContext
(),
mFlutterEngine
.
getPlatformChannel
());
mPlatformPlugin
=
new
PlatformPlugin
((
Activity
)
getContext
(),
mFlutterEngine
.
getPlatformChannel
());
mFlutterView
=
new
FlutterView
(
getContext
(),
getRenderMode
(),
getTransparencyMode
());
mFlutterView
=
new
X
FlutterView
(
getContext
(),
getRenderMode
(),
getTransparencyMode
());
addView
(
mFlutterView
,
new
FrameLayout
.
LayoutParams
(
addView
(
mFlutterView
,
new
FrameLayout
.
LayoutParams
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
ViewGroup
.
LayoutParams
.
MATCH_PARENT
));
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
ViewGroup
.
LayoutParams
.
MATCH_PARENT
));
...
@@ -295,6 +297,10 @@ public class BoostFlutterView extends FrameLayout {
...
@@ -295,6 +297,10 @@ public class BoostFlutterView extends FrameLayout {
Debuger
.
log
(
"BoostFlutterView onDestroy"
);
Debuger
.
log
(
"BoostFlutterView onDestroy"
);
mFlutterView
.
removeOnFirstFrameRenderedListener
(
mOnFirstFrameRenderedListener
);
mFlutterView
.
removeOnFirstFrameRenderedListener
(
mOnFirstFrameRenderedListener
);
AccessibilityBridge
bridge
=
mFlutterView
.
getAccessibilityBridge
();
if
(
bridge
!=
null
){
bridge
.
release
();
}
}
}
//混合栈的返回和原来Flutter的返回逻辑不同
//混合栈的返回和原来Flutter的返回逻辑不同
...
...
android/src/main/java/com/idlefish/flutterboost/XFlutterView.java
0 → 100644
View file @
68b8a0d0
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