alibaba / alibaba/flutter_boost
iOS 使用PlatformView的A页面跳转到Flutter B页面,返回到A页面后PlatformView会变空白然后再显示
- Dominant language
- Dart
- Stars
- 7.2k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
```
InkWell(
child: Container(
height: 100,
width: 375,
child: NativeView('', true),
),
),
InkWell(
child: Container(
padding: const EdgeInsets.all(8.0),
margin: const EdgeInsets.all(8.0),
color: Colors.yellow,
child: const Text(
'flutter rebuild demo',
style: TextStyle(fontSize: 22.0, color: Colors.black),
)),
onTap: () {
BoostNavigator.instance
.push('flutterRebuildDemo', withContainer: withContainer);
},
)
```
官方Demo在flutter rebuild demo按钮上面加一个NativeView,点击flutter rebuild demo按钮后再返回到该页面,NativeView会变空白,然后再显示。
```
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.3.2, on macOS 12.6 21G115 darwin-x64, locale zh-Hans-CN)
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
✗ cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
See https://developer.android.com/studio/command-line for more details.
✗ Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[!] Xcode - develop for iOS and macOS (Xcode 14.0.1)
! CocoaPods 1.10.1 out of date (1.11.0 is recommended).
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To upgrade see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.74.1)
[✓] Connected device (3 available)
[✓] HTTP Host Availability
! Doctor found issues in 2 categories.
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue in the official demo on iOS using the shown NativeView and the BoostNavigator transition to flutterRebuildDemo. First verify the blank-and-reappear behavior after returning to page A; done means the PlatformView remains correctly displayed without becoming blank during navigation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter, ios
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100