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
130de30d
Commit
130de30d
authored
Mar 08, 2019
by
Yacumima
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
ae2564e0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
android/src/main/java/com/taobao/idlefish/flutterboost/BoostFlutterView.java
...va/com/taobao/idlefish/flutterboost/BoostFlutterView.java
+1
-0
android/src/main/java/com/taobao/idlefish/flutterboost/ContainerRecord.java
...ava/com/taobao/idlefish/flutterboost/ContainerRecord.java
+8
-0
lib/container/container_manager.dart
lib/container/container_manager.dart
+3
-5
No files found.
android/src/main/java/com/taobao/idlefish/flutterboost/BoostFlutterView.java
View file @
130de30d
...
...
@@ -79,6 +79,7 @@ public class BoostFlutterView extends FlutterView {
@Override
public
void
onPostResume
()
{
//do nothing...
requestFocus
();
}
@Override
...
...
android/src/main/java/com/taobao/idlefish/flutterboost/ContainerRecord.java
View file @
130de30d
...
...
@@ -79,6 +79,14 @@ public class ContainerRecord implements IContainerRecord {
public
void
onDisappear
()
{
mProxy
.
disappear
();
mState
=
STATE_DISAPPEAR
;
/**
* Bug workaround:
* If current container is finishing, we should call destroy flutter page early.
*/
if
(
mContainer
.
isFinishing
())
{
mProxy
.
destroy
();
}
}
@Override
...
...
lib/container/container_manager.dart
View file @
130de30d
...
...
@@ -201,7 +201,6 @@ class ContainerManagerState extends State<BoostContainerManager> {
final
int
index
=
_offstage
.
indexWhere
((
BoostContainer
container
)
=>
container
.
settings
.
uniqueId
==
settings
.
uniqueId
);
if
(
index
>
-
1
)
{
final
BoostContainerState
old
=
_stateOf
(
_onstage
);
_offstage
.
add
(
_onstage
);
_onstage
=
_offstage
.
removeAt
(
index
);
...
...
@@ -244,7 +243,6 @@ class ContainerManagerState extends State<BoostContainerManager> {
assert
(
_offstage
.
every
((
BoostContainer
container
)
=>
container
.
settings
.
uniqueId
!=
settings
.
uniqueId
));
final
BoostContainerState
old
=
_stateOf
(
_onstage
);
_offstage
.
add
(
_onstage
);
_onstage
=
BoostContainer
.
obtain
(
widget
.
initNavigator
,
settings
);
...
...
@@ -261,14 +259,14 @@ class ContainerManagerState extends State<BoostContainerManager> {
void
pop
()
{
assert
(
canPop
());
final
BoostContainer
State
old
=
_stateOf
(
_onstage
)
;
final
BoostContainer
old
=
_onstage
;
_onstage
=
_offstage
.
removeLast
();
setState
(()
{});
for
(
BoostContainerObserver
observer
in
FlutterBoost
.
singleton
.
observersHolder
.
observersOf
<
BoostContainerObserver
>())
{
observer
(
ContainerOperation
.
Pop
,
_onstage
.
settings
);
observer
(
ContainerOperation
.
Pop
,
old
.
settings
);
}
Logger
.
log
(
'ContainerObserver didPop'
);
...
...
@@ -289,7 +287,7 @@ class ContainerManagerState extends State<BoostContainerManager> {
for
(
BoostContainerObserver
observer
in
FlutterBoost
.
singleton
.
observersHolder
.
observersOf
<
BoostContainerObserver
>())
{
observer
(
ContainerOperation
.
Remove
,
_onstage
.
settings
);
observer
(
ContainerOperation
.
Remove
,
container
.
settings
);
}
Logger
.
log
(
'ContainerObserver didRemove'
);
...
...
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