alibaba / alibaba/flutter_boost

单页面生命周期PageVisibilityObserver,没有效果。

Open
#1,479 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
7.2k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

flutter_boost版本是v3.0-null-safety-preview.10,
使用方法是按照文档中的写的。
@override
void onPageShow() {
super.onPageShow();
print("pagelife-onPageShow");
}

@override
void onPageHide() {
super.onPageHide();
print("pagelife-onPageHide");
}

@override
void onForeground() {
super.onForeground();
print("pagelife-onForeground");
}

@override
void onBackground() {
super.onBackground();
print("pagelife-onBackground");
}
问题是:没有打印信息

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with PageVisibilityObserver and the four overridden callbacks shown in the report, using flutter_boost v3.0-null-safety-preview.10 and the documented usage. Reproduce the page lifecycle and app foreground/background transitions, then trace why none of the callbacks print; done means the expected callbacks fire in the relevant transitions.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.