Comments (8)
This does not happen if the app is run as a web app. No idea if that's relevant.
from flutter.
Thanks for the report @Mr-Pepe
Although I don't have Pixel device, but I tried on Pixel emulator with which I didn't observe the reported behavior. I also tried on Samsung S10 with same result.
Can you provide a short video of the behavior ?
from flutter.
@darshankawar Here you go :)
screen-20240510-182631.mp4
from flutter.
Thanks for the video. Can you provide Gboard details if possible and just to make sure, this doesn't occur with default virtual keyboard correct ?
from flutter.
I just tried with Microsoft SwiftKey and that doesn't have the issue.
The Gboard version is 14.1.04.621126403. Let me know if there is more that I can do.
from flutter.
I've also been experiencing this exact same issue, and would love a fix whenever possible.
from flutter.
Reproducible using the code sample and steps outlined above.
Tested on my Pixel 7.
screen-20240514-064954.mp4
flutter doctor -v
[!] Flutter (Channel stable, 3.22.0, on macOS 14.4.1 23E224 darwin-arm64, locale en-GB)
• Flutter version 3.22.0 on channel stable at /Users/nexus/dev/sdks/flutter
! Warning: `flutter` on your path resolves to /Users/nexus/dev/sdks/flutters/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/nexus/dev/sdks/flutter. Consider adding /Users/nexus/dev/sdks/flutter/bin to the front of your path.
! Warning: `dart` on your path resolves to /Users/nexus/dev/sdks/flutters/bin/dart, which is not inside your current Flutter SDK checkout at /Users/nexus/dev/sdks/flutter. Consider adding /Users/nexus/dev/sdks/flutter/bin to the front of your path.
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 5dcb86f68f (5 days ago), 2024-05-09 07:39:20 -0500
• Engine revision f6344b75dc
• Dart version 3.4.0
• DevTools version 2.34.3
• 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 34.0.0)
• Android SDK at /Users/nexus/Library/Android/sdk
• Platform android-34, build-tools 34.0.0
• Java binary at: /Users/nexus/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
• Xcode at /Applications/Xcode-15.3.0.app/Contents/Developer
• Build 15E204a
• CocoaPods version 1.15.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2023.1)
• Android Studio at /Users/nexus/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.7+0-17.0.7b1000.6-10550314)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.5)
• IntelliJ at /Users/nexus/Applications/IntelliJ IDEA Ultimate.app
• Flutter plugin version 77.2.2
• Dart plugin version 232.10286
[✓] VS Code (version 1.89.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.88.0
[✓] Connected device (6 available)
• Pixel 7 (mobile) • adb-28291FDH2001SA-5Lv71w._adb-tls-connect._tcp. • android-arm64 • Android 14 (API 34)
• Nexus (mobile) • 00008020-001875E83A38002E • ios • iOS 17.4.1 21E236
• Dean’s iPad (mobile) • 00008103-000825C811E3401E • ios • iOS 17.4.1 21E236
• macOS (desktop) • macos • darwin-arm64 • macOS 14.4.1 23E224 darwin-arm64
• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 14.4.1 23E224 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 124.0.6367.202
[✓] Network resources
• All expected network resources are available.
! Doctor found issues in 1 category.
[✓] Flutter (Channel master, 3.22.0-33.0.pre.5, on macOS 14.4.1 23E224 darwin-arm64, locale en-GB)
• Flutter version 3.22.0-33.0.pre.5 on channel master at /Users/nexus/dev/sdks/flutters
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 21177cced4 (2 hours ago), 2024-05-14 01:06:32 -0400
• Engine revision 84687fe0f1
• Dart version 3.5.0 (build 3.5.0-152.0.dev)
• DevTools version 2.36.0-dev.5
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /Users/nexus/Library/Android/sdk
• Platform android-34, build-tools 34.0.0
• Java binary at: /Users/nexus/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
• Xcode at /Applications/Xcode-15.3.0.app/Contents/Developer
• Build 15E204a
• CocoaPods version 1.15.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2023.1)
• Android Studio at /Users/nexus/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.7+0-17.0.7b1000.6-10550314)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.5)
• IntelliJ at /Users/nexus/Applications/IntelliJ IDEA Ultimate.app
• Flutter plugin version 77.2.2
• Dart plugin version 232.10286
[✓] VS Code (version 1.89.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.88.0
[✓] Connected device (5 available)
• Pixel 7 (mobile) • adb-28291FDH2001SA-5Lv71w._adb-tls-connect._tcp. • android-arm64 • Android 14 (API 34)
• Nexus (mobile) • 00008020-001875E83A38002E • ios • iOS 17.4.1 21E236
• macOS (desktop) • macos • darwin-arm64 • macOS 14.4.1 23E224 darwin-arm64
• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 14.4.1 23E224 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 124.0.6367.202
! Error: Browsing on the local area network for Dean’s iPad. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources
• All expected network resources are available.
• No issues found!
from flutter.
I can reproduce this on my physical Pixel 6, though only when I cause the "Change keyboard" dialog to appear and make a selection, not when I just tap the globe 🌐 key to immediately switch languages.
I've confirmed that this is not coming from the framework. The framework does not send TextInput.hide when I reproduce the bug.
I see the engine calls hideSoftInputFromWindow in two places, maybe one of those are causing it to close: https://github.com/flutter/engine/blob/8eba63f29b8b26931496807cb4fc2fed8e4e3258/shell/platform/android/io/flutter/plugin/editing/TextInputPlugin.java#L371, https://github.com/flutter/engine/blob/8eba63f29b8b26931496807cb4fc2fed8e4e3258/shell/platform/android/io/flutter/plugin/editing/TextInputPlugin.java#L401.
And here's an old issue that sounds vaguely similar: #34169.
Maybe someone with more Android expertise would have a hunch @reidbaker ?
Edit: Oh and I see this in my console when I reproduce it:
I/ImeTracker(15092): com.example.sandbox:eb0c645b: onRequestHide at ORIGIN_CLIENT_HIDE_SOFT_INPUT reason HIDE_SOFT_INPUT_BY_INSETS_API
from flutter.
Related Issues (20)
- Running flutter in iOS17, native print logs cannot be displayed in VSCode,only in XCode. But iOS 16 can show both
- How to deploy a flutter app using flavor with xcode cloud?
- RangeSlider : bad rounded value on 55 HOT 2
- Cherry picks to the engine require formatting HOT 4
- [Impeller] Different blur effect when using BorderRadius.only HOT 1
- mac-10 lost external connection phone device. HOT 1
- mac-7 and mac-24 lost external connection phone device. HOT 1
- Blank/empty UI on second run of app in Android emulator.
- [pigeon] [Mac-14] runPigeonIntegrationTests timeout in CI on macOS 14 HOT 1
- mac-23 lost external connection phone device. HOT 1
- [webview_flutter] [flutter 3.22.1] iOS textfield cannot call up keyboard after exiting webview_flutter page in flutter 3.22.1, no problem in 3.19.6 HOT 2
- Flutter 3.22.0 -- iOS crash on app launch: 0x0000000108967408 NativeCanvas._restore$Method$FfiNative + 124 HOT 1
- Can't use shadow build with `led` in staging pool for some engine tests HOT 2
- RichText is not following Android system font size HOT 6
- [go_router]: StatefulShellRoute does not persist when navigating to a new screen after 12.x.x HOT 1
- mac-3 lost external connection phone device. HOT 1
- [go_router] ability to have a default pop to
- [Impeller] Android: Impeller opt-out via the command-line and manifest options must work.
- Machine 'flutter-devicelab-linux-38' might be in bad state and may need to be quarantined HOT 1
- Allow safely probing for surrounding `_InheritedNestedScrollView`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter.