-
Notifications
You must be signed in to change notification settings - Fork 26.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Password bar in the keyboard is flashing when using TextField
with AutofillHints.password
on iOS 17
#134723
Comments
Thanks for the report @nilsreichardt. I am unable to test this at the moment but this should be investigated nonetheless. Fyi @stuartmorgan |
https://api.flutter.dev/flutter/material/TextField/autofillHints.html - Have you tried this? to support autofills in iOS. |
Thanks for your comment. However, I'm not looking to implement autofill. My issue that the keyboard flashes when typing and using autofills on iOS 17. It affects all |
I can reproduce the issue on iPhone 14 Pro, iOS 17.0. It doesn't appear on But I noticed the Password bar flashes only, not whole the keyboard (on the OP demo video and my test) flutter doctor -v (stable and master)[✓] Flutter (Channel stable, 3.13.4, on macOS 13.5 22G74 darwin-x64, locale en-VN)
• Flutter version 3.13.4 on channel stable at /Users/huynq/Documents/GitHub/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 367f9ea16b (31 hours ago), 2023-09-12 23:27:53 -0500
• Engine revision 9064459a8b
• Dart version 3.1.2
• DevTools version 2.25.0
[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
• Android SDK at /Users/huynq/Library/Android/sdk
• Platform android-34, build-tools 32.0.0
• ANDROID_HOME = /Users/huynq/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
• Xcode at /Applications/Xcode15RC.app/Contents/Developer
• Build 15A240d
• CocoaPods version 1.11.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2022.2)
• 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 17.0.6+0-17.0.6b802.4-9586694)
[✓] VS Code (version 1.82.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.72.0
[✓] Connected device (5 available)
• RMX2001 (mobile) • EUYTFEUSQSRGDA6D • android-arm64 • Android 11 (API 30)
• iPhone (mobile) • d9a94afe2b649fef56ba0bfeb052f0f2a7dae95e • ios • iOS 15.7.2 19H218
• iPhone 14 Pro (mobile) • 3BD60F46-FB95-41A0-A179-8AA3F637DA4E • ios •
com.apple.CoreSimulator.SimRuntime.iOS-17-0 (simulator)
• macOS (desktop) • macos • darwin-x64 • macOS 13.5 22G74 darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 117.0.5938.62
[✓] Network resources
• All expected network resources are available.
• No issues found! [!] Flutter (Channel master, 3.14.0-14.0.pre.307, on macOS 13.5 22G74 darwin-x64, locale en-VN)
• Flutter version 3.14.0-14.0.pre.307 on channel master at /Users/huynq/Documents/GitHub/flutter_master
! Warning: `flutter` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
! Warning: `dart` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 1e4a1be681 (60 minutes ago), 2023-09-14 19:10:37 -0700
• Engine revision 45bc4307cd
• Dart version 3.2.0 (build 3.2.0-162.0.dev)
• DevTools version 2.28.0-dev.0
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.
[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
• Android SDK at /Users/huynq/Library/Android/sdk
• Platform android-34, build-tools 32.0.0
• ANDROID_HOME = /Users/huynq/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 14E222b
• CocoaPods version 1.11.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2022.2)
• 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 17.0.6+0-17.0.6b802.4-9586694)
[✓] VS Code (version 1.82.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.72.0
[✓] Connected device (4 available)
• Pixel 7 (mobile) • 2B171FDH20084L • android-arm64 • Android 13 (API 33)
• iPhone (mobile) • d9a94afe2b649fef56ba0bfeb052f0f2a7dae95e • ios • iOS 15.7.2 19H218
• macOS (desktop) • macos • darwin-x64 • macOS 13.5 22G74 darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 117.0.5938.62
[✓] Network resources
• All expected network resources are available.
! Doctor found issues in 1 category. |
TextField
with AutofillHints.password
on iOS 17TextField
with AutofillHints.password
on iOS 17
It looks like the keyboard is rapidly transitioning in and out of having the password bar, changing its height very briefly as a result. We should add logging around the relevant parts of the text input protocol to see what updates we're sending the OS. /cc @hellohuanlin |
This comment was marked as resolved.
This comment was marked as resolved.
I can't reproduce this on iOS 17 simulator. Is this only reproducible on real devices? |
Also I was able to recreate on simulator. Go to I/O make sure toggle device keyboard is on. Then go into passwords in settings and make sure autofill password is on. If you go into safari or somewhere you can save a password to device [like signing into a gmail]. Now, if you use the widget I provided in the gist, when the keyboard is up (CMD + K) and the Passwords autofill shows up, click on the keyboard and the password autofill will disappear at random. I have noticed its not as fast to flicker on the simulator. |
Have you been able to reproduce this @LongCatIsLooong? |
For reference, the same is happening with |
It's interesting, because using flutter 3.16.0-0.3.pre (beta) the issue is non-existent on iOS 17.0.3 iPhone 12 Pro. (On 3.16 -->) When switching between 2 TextFormField's each with obscured text set to true there is weird behavior where the scaffold jumps down then back up and the password autofill bar flickers at the same time. But on this version compared to stable the flickering caused when typing is gone. |
We encounter the same issue: flutter ^3.13.9, iOS 17. Simulator.Screen.Recording.-.iPhone.15.Pro.-.2023-11-24.at.12.45.21.mp4 |
fwiw, I have the same issue in my app and I am using native SwiftUI |
@seanodonnell-udisc could you post a recording? I have not seen such behavior in SwiftUI. |
I just updated to Flutter 3.16 because of this, but the issue is still there. |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
Sorry for the delay flashing-keychain.mp4 |
Still reproducible with Flutter 3.16 and TextFormField, using iOS 17 |
Hi, I got the same issue. I did several tests, and as soon as the field is considered as a password, the quicktype bar display the "password" option and it starts to flash/flicker. Did you find any solution? I use Flutter 3.13.2. |
This seems to be an issue with iOS 17 as it happens on react native apps too. See facebook/react-native#39411 |
Hi, Platform: Web For me, It's happening when setState or any rebuilding is used inside onFocusChange listener applied on TextFormField, Removing setState works well. Any solution? |
This issue is assigned to @LongCatIsLooong but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks! |
We are facing same issue in iOS 17 only. Also, it's only in real iOS device and release build, because we tested in debug mode and it's working fine but when we release build password bar is flickering. |
We are facing the same issue. We use obscureText. Tried with autofillHints as null, but stil facing the issue.Able to reproduce this in simulator, ios 17. Flutter version: 3.13.4. |
Same issue here and also, my app may crash randomly |
Is there an existing issue for this?
Steps to reproduce
TextField
withAutofillHints.password
Expected results
No flashing.
Actual results
The password bar of the keyboard flashes but sometimes also the
TextField
(see video).Code sample
https://github.com/nilsreichardt/flutter-ios17-textfield-bug
Screenshots or Video
RPReplay_Final1694690660.MP4
Logs
Logs
Flutter Doctor output
Doctor output
Additional context
The text was updated successfully, but these errors were encountered: