Repository navigation
FilteringTextInputFormatter.allow can't handle ' char #132232
Description
Activity
- addedin triagePresently being triaged by the triage teamPresently being triaged by the triage team
on Aug 10, 2023 I also can reproduce this issue with my device
iPhone 7, iOS 15.7.2on the latest Flutter stable/master channels. The issue doesn't happen on Android.flutter doctor -v (stable and master)
[✓] Flutter (Channel stable, 3.10.6, on macOS 13.5 22G74 darwin-x64, locale en-VN) • Flutter version 3.10.6 on channel stable at /Users/huynq/Documents/GitHub/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision f468f3366c (3 weeks ago), 2023-07-12 15:19:05 -0700 • Engine revision cdbeda788a • Dart version 3.0.6 • DevTools version 2.23.1 [✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0) • Android SDK at /Users/huynq/Library/Android/sdk • Platform android-33, 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/Xcode-beta.app/Contents/Developer • Build 15A5195m • 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.80.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.68.0 [✓] Connected device (2 available) • macOS (desktop) • macos • darwin-x64 • macOS 13.5 22G74 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 115.0.5790.114 [✓] Network resources • All expected network resources are available. • No issues found![!] Flutter (Channel master, 3.14.0-2.0.pre.14, on macOS 13.5 22G74 darwin-x64, locale en-VN) • Flutter version 3.14.0-2.0.pre.14 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 3f831b694f (3 hours ago), 2023-08-09 17:30:52 -0700 • Engine revision b5b41ff66d • Dart version 3.2.0 (build 3.2.0-42.0.dev) • DevTools version 2.26.1 • 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-33, 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.80.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.70.0 [✓] Connected device (4 available) • RMX2001 (mobile) • EUYTFEUSQSRGDA6D • android-arm64 • Android 11 (API 30) • 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 115.0.5790.170 [✓] Network resources • All expected network resources are available. ! Doctor found issues in 1 category.
- addeda: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsplatform-iosiOS applications specificallyiOS applications specificallyframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onfound in release: 3.10Found to occur in 3.10Found to occur in 3.10team-iosOwned by iOS platform teamOwned by iOS platform teamfound in release: 3.13Found to occur in 3.13Found to occur in 3.13and removedin triagePresently being triaged by the triage teamPresently being triaged by the triage team
on Aug 10, 2023 - addedtriaged-designTriaged by Design Languages teamTriaged by Design Languages teamP2Important issues not at the top of the work listImportant issues not at the top of the work list
on Aug 10, 2023 - removedtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
on Aug 10, 2023 The
triaged-designlabel is irrelevant if there is noteam-designlabel orfyi-designlabel.- addedfyi-frameworkFor the attention of Framework teamFor the attention of Framework team
on Aug 14, 2023 2 remaining items
Yeah, it should be done completely on the framework side. Don't think this is iOS specific.
- addedteam-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework teamand removedteam-iosOwned by iOS platform teamOwned by iOS platform team
on Aug 15, 2023 - removedfyi-frameworkFor the attention of Framework teamFor the attention of Framework teamtriaged-iosTriaged by iOS platform teamTriaged by iOS platform team
on Aug 15, 2023 The
fyi-frameworklabel is redundant with theteam-frameworklabel.
Thetriaged-ioslabel is irrelevant if there is noteam-ioslabel orfyi-ioslabel.iOS doesn't insert the usual single quote character when the user hits that key, it inserts special directional versions. So instead of
'you get either‘or’(same for double quotes, you type"but get“or”).So @oscarceretti you probably just want to add
‘’to your reg exp.This is not obvious so I've added a section to the docs of FilteringTextInputFormatter to try to inform others: #132869
- added a commit that references this issue
on Aug 21, 2023 - addedr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
on Aug 22, 2023 This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.- locked as resolved and limited conversation to collaborators
on Sep 5, 2023
Is there an existing issue for this?
Steps to reproduce
Expected results
Actual results
Code sample
Screenshots or Video
Screenshots / Video demonstration
Registrazione.schermo.2023-08-09.alle.17.57.09.mov
Logs
Logs
[Paste your logs here]Flutter Doctor output
Doctor output