<p dir="auto">Hi, I am the maintainer of the <a href="https://github.com/Sh1d0w/multi_image_picker">multi_image_picker</a> plugin. A developer has reported an issue, where when you return from an Activity, a TextField no longer can open the keyboard if you focus the text field.</p>
<p dir="auto">When you invoke the image picker, then the user is taken to an image selection (another activity is spawned) and after he returns back to the flutter app after selecting the images, focusing the text field no longer brings the keyboard up.</p>
<p dir="auto">The developer also discovered that invoking</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="FocusScope.of(context).requestFocus(new FocusNode());"><pre class="notranslate"><span class="pl-c1">FocusScope</span>.<span class="pl-en">of</span>(context).<span class="pl-en">requestFocus</span>(<span class="pl-k">new</span> <span class="pl-c1">FocusNode</span>());</pre></div>
<p dir="auto">just before invoking the Activity to pick the images, solves the problem. So I guess the Flutter app does not correctly regain focus after returning from the other Activity.</p>
<h2 dir="auto">Steps to Reproduce</h2>
<p dir="auto">The POC can be observed in the original issue here <a href="https://github.com/Sh1d0w/multi_image_picker/issues/27">https://github.com/Sh1d0w/multi_image_picker/issues/27</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="flutter doctor -v
[✓] Flutter (Channel beta, v0.10.2, on Mac OS X 10.14 18A391, locale en-BG)
    • Flutter version 0.10.2 at /Users/radoslav/Projects/flutter
    • Framework revision d8cbb80206 (2 weeks ago), 2018-10-26 01:30:21 -0400
    • Engine revision 6c2ade9fa2
    • Dart version 2.1.0-dev.8.0.flutter-bf26f760b1

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.1)
    • Android SDK at /Users/radoslav/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 27.0.1
    • 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-915-b08)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • ios-deploy 1.9.2
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.0)
    • Android Studio at /Applications/Android Studio.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-915-b08)

[✓] IntelliJ IDEA Community Edition (version 2018.2.5)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 30.0.2
    • Dart plugin version 182.5124

[✓] VS Code (version 1.28.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 2.20.0

[!] Connected device
    ! No devices available

! Doctor found issues in 1 category."><pre class="notranslate"><code class="notranslate">flutter doctor -v
[✓] Flutter (Channel beta, v0.10.2, on Mac OS X 10.14 18A391, locale en-BG)
    • Flutter version 0.10.2 at /Users/radoslav/Projects/flutter
    • Framework revision d8cbb80206 (2 weeks ago), 2018-10-26 01:30:21 -0400
    • Engine revision 6c2ade9fa2
    • Dart version 2.1.0-dev.8.0.flutter-bf26f760b1

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.1)
    • Android SDK at /Users/radoslav/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 27.0.1
    • 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-915-b08)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • ios-deploy 1.9.2
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.0)
    • Android Studio at /Applications/Android Studio.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-915-b08)

[✓] IntelliJ IDEA Community Edition (version 2018.2.5)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 30.0.2
    • Dart plugin version 182.5124

[✓] VS Code (version 1.28.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 2.20.0

[!] Connected device
    ! No devices available

! Doctor found issues in 1 category.
</code></pre></div>
<p dir="auto">Running flutter gallery, in text_field_demo.dart, if I type any string of letters into the Name field, an underline appears beneath them. After I press enter, this underline persists. However, once I click the field again, the underline disappears, and does not reappear after pressing enter a second time. It seems to occasionally take more than one opening/closing of the field before the underline disappears. If the underline disappears and I then click back in and type more text, the previously-typed text becomes duplicated and underlined along with the new text, after the first copy of the previously-typed text which is still not underlined.</p>
<p dir="auto">These issues appear to only be present when typing unhidden letters, rather than numbers or any hidden characters. With numbers and hidden characters (the phone number and password fields of text_field_demo.dart), there is never an underline at all. This is what I would expect.</p>