alibaba / alibaba/flutter_boost
[Bug]: 究竟要怎样用FlutterFragmentActivity
- Dominant language
- Dart
- Stars
- 7.2k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
### 请描述遇到的问题,以及您所期望的正确的结果
修改了FlutterBoostActivity的继承
屏蔽了FlutterFragmentActivity没有的方法
然后textureHooker.hookFlutterTextureView(flutterTextureView);不知道应该在哪里实现
然后我的页面控件是使用PlatFormView展示cordovawebview
第一次跳转会黑屏,然后后面有很大几率这个页面不加载。
### 请说明如何操作会遇到上述问题
_No response_
### 在下面填入关键复现代码
```
```
### 复现的平台
Both
### Flutter SDK版本
3.22.0
### FlutterBoost版本
4.6.3
### 是否延迟初始化FlutterBoost
No
### 解决方案
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with FlutterBoostActivity and FlutterFragmentActivity, then trace where textureHooker.hookFlutterTextureView is expected to run for the PlatformView containing the Cordova webview. Reproduce with Flutter SDK 3.22.0 and FlutterBoost 4.6.3 on both platforms; done means the first navigation is not black and the page reliably loads afterward.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, dart, ios
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100