-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Labels
a: existing-appsIntegration with existing apps via the add-to-app flowIntegration with existing apps via the add-to-app flowa: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsplatform-androidAndroid applications specificallyAndroid applications specifically
Description
I'm adding Flutter to an existing Android project and the basic setup is this, I have a FlutterView as the content view of a fragment that sits inside the content area of a native Android DrawerLayout.
My FlutterView has a form with a TextFormField which refuses to show the keyboard when tapped.
I've traced the code down to the io.flutter.plugin.editing.TextInputPlugin and the method call TextInput.show is being reached however the call to android.view.inputmethod.InputMethodManager.showSoftInput(View view, int flags) seems to not be successful because for whatever reason the flutter view is not focused at that time so the Android framework is rejecting the show request.
[✓] Flutter (Channel dev, v0.7.5, on Mac OS X 10.13.6 17G65, locale en-AU)
• Flutter version 0.7.5 at /Users/mike/Documents/flutter
• Framework revision eab5cd9853 (4 days ago), 2018-08-30 14:47:04 -0700
• Engine revision dc7b5eb89d
• Dart version 2.1.0-dev.3.0.flutter-760a9690c2
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.2)
• Android SDK at /Users/mike/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.2
• ANDROID_HOME = /Users/mike/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.4.1, Build version 9F2000
• ios-deploy 1.9.2
• CocoaPods version 1.5.3
[✓] Android Studio
• Android Studio at /Applications/Android Studio 3.2 Preview.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b04)
[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 27.1.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[!] IntelliJ IDEA Community Edition (version 2017.3.3)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.io/intellij-setup/#installing-the-plugins
[✓] Connected devices (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)
! Doctor found issues in 1 category.
Metadata
Metadata
Assignees
Labels
a: existing-appsIntegration with existing apps via the add-to-app flowIntegration with existing apps via the add-to-app flowa: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsplatform-androidAndroid applications specificallyAndroid applications specifically