alibaba / alibaba/flutter_boost
viewPager+FlutterFragment出现的崩溃问题
- Dominant language
- Dart
- Stars
- 7.2k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
viewPager+FlutterFragment的时候ViewPager的adapter里有fragment.setUserVisibleHint(false);控制fragment显示隐藏 这时候flutterFragment里的断言判断就直接崩溃了...求给个解决方法

Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the crash from a ViewPager adapter that calls setUserVisibleHint(false) on a FlutterFragment, then inspect the FlutterFragment assertion involved in the visibility transition. Done means the reported ViewPager and FlutterFragment combination no longer crashes, with the expected fragment visibility behavior verified; the payload names no specific files or tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, dart, flutter
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100