alibaba / alibaba/flutter_boost

回退页面出现闪现前一个 native 页面问题

Open
#949 2 comments 0 reactions 0 assignees View on GitHub
Android
Dominant language
Dart
Stars
7.2k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

> 现象: 打开多个 native flutter 混合页面,点击手机底部导航栏 **查看所有应用程序那个按钮** 会闪现上一个 native 页面,如果不闪现,此时点击返回按键,无论 debug/release 都会闪现上一个 native 页面并恢复正常,此时控制台报下面的错误

**重要** 容器 theme android:windowIsTranslucent 为 true, 以实现侧滑退出, 估计问题就在这里
```
true
```

https://user-images.githubusercontent.com/7344437/103996025-3a6bec00-51d4-11eb-8e1e-91494c68a5ea.mp4

```
{
"flutterSdkVersion": "1.22.4"
}
```

```
flutter_boost:
git:
url: 'https://github.com/alibaba/flutter_boost.git'
ref: 'v1.22.4-hotfixes'
```

```
% flutter doctor -v
[✓] Flutter (Channel unknown, 1.22.4, on Mac OS X 10.15.7 19H2 darwin-x64, locale zh-Hans-CN)
• Flutter version 1.22.4 at /Users/krmao/fvm/versions/1.22.4
• Framework revision 1aafb3a8b9 (8 weeks ago), 2020-11-13 09:59:28 -0800
• Engine revision 2c956a31c0
• Dart version 2.10.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
• Android SDK at /Users/krmao/sdks/android/sdk
• Platform android-30, build-tools 30.0.0
• ANDROID_HOME = /Users/krmao/sdks/android/sdk
• Java binary at: /Applications/Android Studio 4.1.1.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.2, Build version 12B45b
• CocoaPods version 1.10.0

[!] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio 4.1.1.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] Android Studio (version 3.6)
• Android Studio at /Applications/Android Studio 3.6.3.app/Contents
• Flutter plugin version 49.0.1
• Dart plugin version 192.8052
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

[✓] IntelliJ IDEA Ultimate Edition (version 2019.3.3)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 45.1.2
• Dart plugin version 193.6494.35

[!] VS Code (version 1.52.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
✗ Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (1 available)
• CLT AL01 (mobile) • AKC7N19118000852 • android-arm64 • Android 10 (API 29)

! Doctor found issues in 2 categories.
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the Android scenario with multiple native/Flutter hybrid pages using Flutter 1.22.4 and the v1.22.4-hotfixes branch. Start by examining the behavior around the container theme's android:windowIsTranslucent setting and the system recent-apps and back-navigation actions. Done means the previous native page no longer flashes in either debug or release builds.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, dart, flutter
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.