alibaba / alibaba/flutter_boost
addBoostContainerLifeCycleObserver在initState注册生命周期
- Dominant language
- Dart
- Stars
- 7.2k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
在page的initState()里面注册FlutterBoost.singleton.addBoostContainerLifeCycleObserver,第一次进入的时候无法监听到该页面的Init 和Appear两种状态,看源码里面是initState执行在Activity或Fragment的onResume之后导致,状态更新了才注册的监听,请问有什么方法能监听到吗。
我尝试在main里面注册addBoostContainerLifeCycleObserver,但是如何通知到每个界面的生命周期状态
Contributor guide
No contributing guide indexed for this repository
Research direction
Trace FlutterBoost.singleton.addBoostContainerLifeCycleObserver from the page initState() path and compare it with the native Activity or Fragment onResume flow described in the issue. Check how an observer registered in main is expected to notify individual pages. Done means the first page entry can receive both Init and Appear lifecycle states, with a clear per-page notification path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100