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
7c6ed2d8
Commit
7c6ed2d8
authored
Nov 30, 2020
by
Luke
Committed by
justin
Dec 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复flutter page 不能及时dispose的问题
parent
3620756d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ios/Classes/container/FLBFlutterViewContainer.m
ios/Classes/container/FLBFlutterViewContainer.m
+4
-4
No files found.
ios/Classes/container/FLBFlutterViewContainer.m
View file @
7c6ed2d8
...
@@ -172,6 +172,10 @@ static NSUInteger kInstanceCounter = 0;
...
@@ -172,6 +172,10 @@ static NSUInteger kInstanceCounter = 0;
if
(
!
parent
)
{
if
(
!
parent
)
{
//当VC被移出parent时,就通知flutter层销毁page
//当VC被移出parent时,就通知flutter层销毁page
[
self
notifyWillDealloc
];
[
self
notifyWillDealloc
];
if
(
self
.
engine
.
viewController
==
self
)
{
[
self
detatchFlutterEngine
];
}
}
}
[
super
didMoveToParentViewController
:
parent
];
[
super
didMoveToParentViewController
:
parent
];
}
}
...
@@ -308,10 +312,6 @@ static NSUInteger kInstanceCounter = 0;
...
@@ -308,10 +312,6 @@ static NSUInteger kInstanceCounter = 0;
params:
_params
params:
_params
uniqueId:
self
.
uniqueIDString
];
uniqueId:
self
.
uniqueIDString
];
[
super
bridge_viewDidDisappear
:
animated
];
[
super
bridge_viewDidDisappear
:
animated
];
if
(
self
.
engine
.
viewController
==
self
)
{
[
self
detatchFlutterEngine
];
}
}
}
-
(
void
)
installSplashScreenViewIfNecessary
{
-
(
void
)
installSplashScreenViewIfNecessary
{
...
...
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