alibaba / alibaba/flutter_boost

viewPager+FlutterFragment出现的崩溃问题

Open
#1,503 6 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

viewPager+FlutterFragment的时候ViewPager的adapter里有fragment.setUserVisibleHint(false);控制fragment显示隐藏 这时候flutterFragment里的断言判断就直接崩溃了...求给个解决方法
![image](https://user-images.githubusercontent.com/20673234/145366406-7041edcf-1f5a-40f1-afae-a68f9941d79a.png)

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.