Commit f887dd98 authored by 余玠's avatar 余玠

add will disappear to life cycle listening

parent 93e9861e
...@@ -30,6 +30,7 @@ import '../logger.dart'; ...@@ -30,6 +30,7 @@ import '../logger.dart';
enum ContainerLifeCycle { enum ContainerLifeCycle {
Init, Init,
Appear, Appear,
WillDisappear,
Disappear, Disappear,
Destroy, Destroy,
Background, Background,
......
...@@ -236,6 +236,8 @@ class ContainerCoordinator { ...@@ -236,6 +236,8 @@ class ContainerCoordinator {
} }
bool _nativeContainerWillDisappear(String name, Map params, String pageId) { bool _nativeContainerWillDisappear(String name, Map params, String pageId) {
performContainerLifeCycle(_createContainerSettings(name, params, pageId),
ContainerLifeCycle.WillDisappear);
return true; return true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment