alibaba / alibaba/flutter_boost
flutter boost 唤起有键盘的页面问题很多
- Dominant language
- Dart
- Stars
- 7.2k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
flutter boost 版本 1.17.1
dart:
Flutter 1.17.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 8af6b2f038 (9 months ago) • 2020-06-30 12:53:55 -0700
Engine • revision ee76268252
Tools • Dart 2.8.4
device: iphone 14.2
问题1:有时候页面出现回弹现象,概率还挺高,
问题2:关闭Flutter页面,回到原生页面键盘没有收起
===================
尝试的方案:
@override
void didChangeAppLifecycleState(AppLifecycleState state) {
if (state == AppLifecycleState.resumed) {
keywordInputKey.currentState?.focus();
} else {
keywordInputKey.currentState?.unfocus();
}
}
仍然解决不了问题
还有一个现象:多次操作,反复操作flutter -> Native-->Flutter, 有时候会出现 Init和Appear uniqueId 不一致,只要出现这种情况键盘,回到原生页面,键盘就无法收起
flutter: FlutterBoost#onMetohdCall didInitPageContainer
flutter: DEBUG main_entrypoint 当前状态 >>>> ContainerLifeCycle.Init >> >> name >> /net/search >> uniqueId >> 6
flutter: FlutterBoost#BoostContainerLifeCycleObservercontainer:/net/searchlifeCycle:ContainerLifeCycle.Init
flutter: FlutterBoost#_refreshOverlayEntries in setState
flutter: FlutterBoost#ContainerObserver#2 didPush
flutter: DEBUG main_entrypoint 当前状态 >>>> ContainerLifeCycle.Appear >> >> name >> /net/search >> uniqueId >> 4
研究了一下flutterboost oc部分,uniqueId 完全是自动生成的
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing repeated Flutter-to-native-to-Flutter navigation on the reported Flutter 1.17.1, iOS 14.2 setup while observing keyboard dismissal and the logged Init and Appear uniqueId values. Then inspect the FlutterBoost Objective-C lifecycle handling mentioned in the report; done means the keyboard closes on returning to the native page and lifecycle IDs remain consistent.
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
- 25/100