Commit 2f523fd6 authored by Jim's avatar Jim Committed by GitHub

Update Frequently Asked Question.md

update
parent e9faf841
### 在FlutterBoost下如何管理Flutter页面的生命周期?原生的Flutter的AppLifecycleState事件会不一致,比如ViewAppear会导致app状态suspending或者paused。混合栈怎么处理?
回答:在混合栈下,页面事件基于以下自定义的事件:
```dart
enum ContainerLifeCycle {
Init,
Appear,
WillDisappear,
Disappear,
Destroy,
Background,
Foreground
}
```
对于页面事件重复,请参考下面的FAQ。
### 如何判断flutter的widget或者container是当前可见的? ### 如何判断flutter的widget或者container是当前可见的?
回答:有个api可以判断当前页面是否可见: 回答:有个api可以判断当前页面是否可见:
```dart ```dart
......
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