alibaba / alibaba/flutter_boost
flutter_boost 4.0.3 Tab + 多个 FlutterBoostFragment 页面退到后台再返回前台时显示的 FlutterBoostFragment 错误
- 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. flutter_boost 4.0.3 版本中的 Example(tab_example)也可复现该问题
2. 进入 tab_example 页面后点击底部几个 Tab 让多个 FlutterBoostFragment 都加载一次,然后选择第一个 Tab(消息), 点击 open native page 按钮打开一个 Native 页面(或按 Home 键将应用退到后台),之后在返回 tab_example 页面,发现显示的是 第二个 tab(朋友)对应的 FlutterBoostFragment 。

**Flutter Boost Version: 4.0.3**
**Target Platform: Android**
**Target OS version/browser: Android 8.0**
**Devices: Galaxy S9**
## Logs
add your crash log or something else.
```
[✓] Flutter (Channel unknown, 3.0.5, on macOS 12.5 21G72 darwin-x64, locale zh-Hans-CN)
• Flutter version 3.0.5 at /Users/jkenny/flutter
• Upstream repository unknown
• Framework revision f1875d570e (6 weeks ago), 2022-07-13 11:24:16 -0700
• Engine revision e85ea0e79c
• Dart version 2.17.6
• DevTools version 2.12.2
• Pub download mirror https://pub.flutter-io.cn
• Flutter download mirror https://storage.flutter-io.cn
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /Users/jkenny/Library/Android/sdk
• Platform android-33, build-tools 31.0.0
• ANDROID_HOME = /Users/jkenny/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• CocoaPods version 1.11.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2021.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the tab_example reproduction and trace the Android FlutterBoostFragment lifecycle when the app or native page returns to the foreground. Verify the selected first tab still displays its own FlutterBoostFragment after multiple tabs have loaded, including the provided Android 8.0 scenario.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, dart, flutter
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100