-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
[android] keyboard type doesn't change on some keyboards #88299
Comments
Hi @tbm98 macOSScreen.Recording.2021-08-17.at.13.41.27.movWindowsI also tried a physical device with Google Gboard, still no issue but it reproduces when using SwiftKeyflutter doctor -v[✓] Flutter (Channel stable, 2.2.3, on Microsoft Windows [Version 10.0.22000.132], locale en-US)
• Flutter version 2.2.3 at C:\Users\Taha\Code\flutter_stable
• Framework revision f4abaa0735 (7 weeks ago), 2021-07-01 12:46:11 -0700
• Engine revision 241c87ad80
• Dart version 2.13.4
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at C:\Users\Taha\Code\android-sdk
• Platform android-31, build-tools 31.0.0
• ANDROID_SDK_ROOT = C:\Users\Taha\Code\android-sdk
• Java binary at: C:\Users\Taha\Code\android-studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.0)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
• Visual Studio Community 2019 version 16.11.31605.320
• Windows 10 SDK version 10.0.19041.0
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
[✓] VS Code (version 1.59.0)
• VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.25.0
[✓] Connected device (6 available)
• Redmi K20 Pro (mobile) • def0ad20 • android-arm64 • Android 11 (API 30)
• Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)
• sdk gphone x86 (mobile) • emulator-5556 • android-x86 • Android 11 (API 30) (emulator)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22000.132]
• Chrome (web) • chrome • web-javascript • Google Chrome 92.0.4515.159
• Edge (web) • edge • web-javascript • Microsoft Edge 92.0.902.67
! Doctor found issues in 1 category. Can you please provide the exact emulator name from AVD manger? |
Hi @TahaTesser I just tested on pixel 4 with android 11(with google play) it works correctly |
Hi @tbm98 Also If use either of the text fields without a column, it works fine
Emulator with AOSP keyboard[ +5 ms] Flutter run key commands.
[ +3 ms] r Hot reload. 🔥🔥🔥
[ +2 ms] R Hot restart.
[ +1 ms] h List all available interactive commands.
[ +1 ms] d Detach (terminate "flutter run" but leave application running).
[ +1 ms] c Clear the screen
[ ] q Quit (terminate the application on the device).
[ ] 💪 Running with sound null safety 💪
[ +1 ms] An Observatory debugger and profiler on Android SDK built for x86 is available at:
http://127.0.0.1:51355/Kdww_voqWPU=/
[ +204 ms] DevTools activation throttled until 2021-08-18 22:33:18.358733.
[+3147 ms] The Flutter DevTools debugger and profiler on Android SDK built for x86 is available at:
http://127.0.0.1:9101?uri=http://127.0.0.1:51355/Kdww_voqWPU=/
[+8986 ms] W/IInputConnectionWrapper( 3786): getSelectedText on inactive InputConnection
[ +1 ms] W/IInputConnectionWrapper( 3786): requestCursorAnchorInfo on inactive InputConnection
[ +1 ms] W/IInputConnectionWrapper( 3786): getTextBeforeCursor on inactive InputConnection
[ +3 ms] W/IInputConnectionWrapper( 3786): getTextBeforeCursor on inactive InputConnection
[ +175 ms] W/IInputConnectionWrapper( 3786): getTextBeforeCursor on inactive InputConnection
[ ] W/IInputConnectionWrapper( 3786): getTextBeforeCursor on inactive InputConnection
[ +160 ms] D/InputConnectionAdaptor( 3786): The input method toggled cursor monitoring on
[ +423 ms] D/InputConnectionAdaptor( 3786): The input method toggled cursor monitoring on
[ +405 ms] D/InputConnectionAdaptor( 3786): The input method toggled cursor monitoring on
[ +422 ms] D/InputConnectionAdaptor( 3786): The input method toggled cursor monitoring on
[ +300 ms] D/InputConnectionAdaptor( 3786): The input method toggled cursor monitoring on
[ +323 ms] D/InputConnectionAdaptor( 3786): The input method toggled cursor monitoring on
[ +227 ms] D/InputConnectionAdaptor( 3786): The input method toggled cursor monitoring on
[ +240 ms] D/InputConnectionAdaptor( 3786): The input method toggled cursor monitoring on
Check flutter doctor -v[✓] Flutter (Channel stable, 2.2.3, on Microsoft Windows [Version 10.0.22000.132], locale en-US)
• Flutter version 2.2.3 at C:\Users\Taha\Code\flutter_stable
• Framework revision f4abaa0735 (7 weeks ago), 2021-07-01 12:46:11 -0700
• Engine revision 241c87ad80
• Dart version 2.13.4
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at C:\Users\Taha\Code\android-sdk
• Platform android-31, build-tools 31.0.0
• ANDROID_SDK_ROOT = C:\Users\Taha\Code\android-sdk
• Java binary at: C:\Users\Taha\Code\android-studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.0)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
• Visual Studio Community 2019 version 16.11.31605.320
• Windows 10 SDK version 10.0.19041.0
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
[✓] VS Code (version 1.59.0)
• VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.25.0
[✓] Connected device (5 available)
• Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)
• sdk gphone x86 (mobile) • emulator-5556 • android-x86 • Android 11 (API 30) (emulator)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22000.132]
• Chrome (web) • chrome • web-javascript • Google Chrome 92.0.4515.159
• Edge (web) • edge • web-javascript • Microsoft Edge 92.0.902.67
! Doctor found issues in 1 category. [✓] Flutter (Channel master, 2.5.0-7.0.pre.130, on Microsoft Windows [Version 10.0.22000.132], locale en-US)
• Flutter version 2.5.0-7.0.pre.130 at C:\Users\Taha\Code\flutter_master
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision d83fba1a22 (54 minutes ago), 2021-08-18 03:02:04 -0400
• Engine revision a27da3eeb6
• Dart version 2.15.0 (build 2.15.0-24.0.dev)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at C:\Users\Taha\Code\android-sdk
• Platform android-31, build-tools 31.0.0
• ANDROID_SDK_ROOT = C:\Users\Taha\Code\android-sdk
• Java binary at: C:\Users\Taha\Code\android-studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.0)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
• Visual Studio Community 2019 version 16.11.31605.320
• Windows 10 SDK version 10.0.19041.0
[✓] Android Studio (version 2020.3)
• Android Studio at C:\Users\Taha\Code\android-studio
• 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 11.0.10+0-b96-7249189)
[✓] VS Code (version 1.59.0)
• VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.25.0
[✓] Connected device (6 available)
• Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)
• sdk gphone x86 (mobile) • emulator-5556 • android-x86 • Android 11 (API 30) (emulator)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22000.132]
• Windows (UWP) (desktop) • winuwp • windows-uwp-x64 •
• Chrome (web) • chrome • web-javascript • Google Chrome 92.0.4515.159
• Edge (web) • edge • web-javascript • Microsoft Edge 92.0.902.67
• No issues found! ✅: No Issue ❌: Issue reproduced |
CC @justinmc |
Vaguely reminds me of #84240, but I guess that's keyboard type and not action... |
@justinmc and I also tested the native app with the same configuration, keyboard updates just fine. |
Steps to Reproduce
use two TextField with different
textInputAction
one has
maxLines: null
andtextInputAction: TextInputAction.done
another one has
maxLines: null
andtextInputAction: TextInputAction.newline
Expected results: action button on keyboard display correct action
Actual results: action button on keyboard display the same action for both
flutter doctor -v
Details
sample snippet
Details
full code: here
run app > click to add(+) button
Screen.Recording.2021-08-16.at.23.58.43.mov
The text was updated successfully, but these errors were encountered: