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

8ulbf1ek  于 4个月前  发布在  Flutter
关注(0)|答案(1)|浏览(45)

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<T extends Fragment> extends FragmentPagerAdapter {
    protected List<T> mList;

    public BaseFragmentPagerAdapter(FragmentManager fm, List<T> list) {
        // 这里的第二个参数 不可以取消 FlutterBoostFragment 会崩溃
        super(fm, BEHAVIOR_RESUME_ONLY_CURRENT_FRAGMENT);
    }
  1. when I open this Activity From FlutterPage ,then back to FlutterPage ,then try to Navigator.push() jump page,but it is notwork.
  2. 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.

相关问题