alibaba / alibaba/flutter_boost

use FlutterBoostFragment made Navigator.push() is not work.

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

Description

## Steps to Reproduce
**A small application to reproduce the bug(最小化可复现的demo)**

1. A Activity contain a ViewPager ,ViewPager has two item,one is Fragment ,another is FlutterBoostFragment。
2. The Fragment adapter is
```
public class BaseFragmentPagerAdapter extends FragmentPagerAdapter {
protected List mList;

public BaseFragmentPagerAdapter(FragmentManager fm, List list) {
// 这里的第二个参数 不可以取消 FlutterBoostFragment 会崩溃
super(fm, BEHAVIOR_RESUME_ONLY_CURRENT_FRAGMENT);
}
```
3. when I open this Activity From FlutterPage ,then back to FlutterPage ,then try to Navigator.push() jump page,but it is notwork.
4. when I set FlutterBoostFragment is First item, Navigator.push() worked.

**Flutter Boost Version**
**Target Platform:**
**Target OS version/browser:**
**Devices:**

## Logs
add your crash log or something else.

```
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the FlutterBoostFragment and the Android Activity/ViewPager setup described in the reproduction, then trace the FlutterPage return path and Navigator.push() behavior. Compare the working case where FlutterBoostFragment is the first item with the failing pager order; done means navigation works after returning to FlutterPage without a crash.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, java
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.