<h2 dir="auto">Steps to Reproduce</h2>

<ol dir="auto">
<li>run: <code class="notranslate">flutter create --with-driver-test my_project</code></li>
<li>Notice that <code class="notranslate">enableFlutterDriverExtension();</code> inside <code class="notranslate">main.dart</code> main method</li>
<li>Add TextField to your UI</li>
<li>Keyboard won't show when you click TextField</li>
<li>remove <code class="notranslate">enableFlutterDriverExtension();</code> Keyboard show as expected.</li>
</ol>
<h2 dir="auto">Logs</h2>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[  +16 ms] [/home/polen/Flutter/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +29 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/master
[        ] [/home/polen/Flutter/flutter/] git rev-parse --abbrev-ref HEAD
[   +5 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] master
[        ] [/home/polen/Flutter/flutter/] git ls-remote --get-url origin
[   +8 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[        ] [/home/polen/Flutter/flutter/] git log -n 1 --pretty=format:%H
[  +11 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[        ] 21c2e47f29ec8aaf14f8b137de941bb5aa89d6de
[        ] [/home/polen/Flutter/flutter/] git log -n 1 --pretty=format:%ar
[   +9 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[        ] 31 hours ago
[        ] [/home/polen/Flutter/flutter/] git describe --match v*.*.* --first-parent --long --tags
[  +53 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[        ] v0.4.2-16-g21c2e47
[  +60 ms] &quot;flutter run&quot; took 10ms.
Error: No pubspec.yaml file found.
This command should be run from the root of your Flutter project.
Do not run this command from the root of your git clone of Flutter.

#0      FlutterCommand.validateCommand (package:flutter_tools/src/runner/flutter_command.dart:427)
&lt;asynchronous suspension&gt;
#1      RunCommand.validateCommand (package:flutter_tools/src/commands/run.dart:251)
&lt;asynchronous suspension&gt;
#2      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:323)
&lt;asynchronous suspension&gt;
#3      FlutterCommand.run.&lt;anonymous closure&gt; (package:flutter_tools/src/runner/flutter_command.dart:279)
&lt;asynchronous suspension&gt;
#4      AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142)
&lt;asynchronous suspension&gt;
#5      _rootRun (dart:async/zone.dart:1126)
#6      _CustomZone.run (dart:async/zone.dart:1023)
#7      runZoned (dart:async/zone.dart:1501)
#8      AppContext.run (package:flutter_tools/src/base/context.dart:141)
&lt;asynchronous suspension&gt;
#9      FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:270)
#10     CommandRunner.runCommand (package:args/command_runner.dart:194)
&lt;asynchronous suspension&gt;
#11     FlutterCommandRunner.runCommand.&lt;anonymous closure&gt; (package:flutter_tools/src/runner/flutter_command_runner.dart:309)
&lt;asynchronous suspension&gt;
#12     AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142)
&lt;asynchronous suspension&gt;
#13     _rootRun (dart:async/zone.dart:1126)
#14     _CustomZone.run (dart:async/zone.dart:1023)
#15     runZoned (dart:async/zone.dart:1501)
#16     AppContext.run (package:flutter_tools/src/base/context.dart:141)
&lt;asynchronous suspension&gt;
#17     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:265)
&lt;asynchronous suspension&gt;
#18     CommandRunner.run.&lt;anonymous closure&gt; (package:args/command_runner.dart:109)
#19     new Future.sync (dart:async/future.dart:222)
#20     CommandRunner.run (package:args/command_runner.dart:109)
#21     FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:174)
#22     run.&lt;anonymous closure&gt; (package:flutter_tools/runner.dart:54)
&lt;asynchronous suspension&gt;
#23     AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142)
&lt;asynchronous suspension&gt;
#24     _rootRun (dart:async/zone.dart:1126)
#25     _CustomZone.run (dart:async/zone.dart:1023)
#26     runZoned (dart:async/zone.dart:1501)
#27     AppContext.run (package:flutter_tools/src/base/context.dart:141)
&lt;asynchronous suspension&gt;
#28     runInContext (package:flutter_tools/src/context_runner.dart:42)
&lt;asynchronous suspension&gt;
#29     run (package:flutter_tools/runner.dart:49)
#30     main (package:flutter_tools/executable.dart:48)
&lt;asynchronous suspension&gt;
#31     main (file:///home/polen/Flutter/flutter/packages/flutter_tools/bin/flutter_tools.dart:8)
#32     _startIsolate.&lt;anonymous closure&gt; (dart:isolate-patch/dart:isolate/isolate_patch.dart:277)
#33     _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165)
"><pre class="notranslate"><code class="notranslate">[  +16 ms] [/home/polen/Flutter/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +29 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/master
[        ] [/home/polen/Flutter/flutter/] git rev-parse --abbrev-ref HEAD
[   +5 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] master
[        ] [/home/polen/Flutter/flutter/] git ls-remote --get-url origin
[   +8 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[        ] [/home/polen/Flutter/flutter/] git log -n 1 --pretty=format:%H
[  +11 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[        ] 21c2e47f29ec8aaf14f8b137de941bb5aa89d6de
[        ] [/home/polen/Flutter/flutter/] git log -n 1 --pretty=format:%ar
[   +9 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[        ] 31 hours ago
[        ] [/home/polen/Flutter/flutter/] git describe --match v*.*.* --first-parent --long --tags
[  +53 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[        ] v0.4.2-16-g21c2e47
[  +60 ms] "flutter run" took 10ms.
Error: No pubspec.yaml file found.
This command should be run from the root of your Flutter project.
Do not run this command from the root of your git clone of Flutter.

#0      FlutterCommand.validateCommand (package:flutter_tools/src/runner/flutter_command.dart:427)
&lt;asynchronous suspension&gt;
#1      RunCommand.validateCommand (package:flutter_tools/src/commands/run.dart:251)
&lt;asynchronous suspension&gt;
#2      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:323)
&lt;asynchronous suspension&gt;
#3      FlutterCommand.run.&lt;anonymous closure&gt; (package:flutter_tools/src/runner/flutter_command.dart:279)
&lt;asynchronous suspension&gt;
#4      AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142)
&lt;asynchronous suspension&gt;
#5      _rootRun (dart:async/zone.dart:1126)
#6      _CustomZone.run (dart:async/zone.dart:1023)
#7      runZoned (dart:async/zone.dart:1501)
#8      AppContext.run (package:flutter_tools/src/base/context.dart:141)
&lt;asynchronous suspension&gt;
#9      FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:270)
#10     CommandRunner.runCommand (package:args/command_runner.dart:194)
&lt;asynchronous suspension&gt;
#11     FlutterCommandRunner.runCommand.&lt;anonymous closure&gt; (package:flutter_tools/src/runner/flutter_command_runner.dart:309)
&lt;asynchronous suspension&gt;
#12     AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142)
&lt;asynchronous suspension&gt;
#13     _rootRun (dart:async/zone.dart:1126)
#14     _CustomZone.run (dart:async/zone.dart:1023)
#15     runZoned (dart:async/zone.dart:1501)
#16     AppContext.run (package:flutter_tools/src/base/context.dart:141)
&lt;asynchronous suspension&gt;
#17     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:265)
&lt;asynchronous suspension&gt;
#18     CommandRunner.run.&lt;anonymous closure&gt; (package:args/command_runner.dart:109)
#19     new Future.sync (dart:async/future.dart:222)
#20     CommandRunner.run (package:args/command_runner.dart:109)
#21     FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:174)
#22     run.&lt;anonymous closure&gt; (package:flutter_tools/runner.dart:54)
&lt;asynchronous suspension&gt;
#23     AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142)
&lt;asynchronous suspension&gt;
#24     _rootRun (dart:async/zone.dart:1126)
#25     _CustomZone.run (dart:async/zone.dart:1023)
#26     runZoned (dart:async/zone.dart:1501)
#27     AppContext.run (package:flutter_tools/src/base/context.dart:141)
&lt;asynchronous suspension&gt;
#28     runInContext (package:flutter_tools/src/context_runner.dart:42)
&lt;asynchronous suspension&gt;
#29     run (package:flutter_tools/runner.dart:49)
#30     main (package:flutter_tools/executable.dart:48)
&lt;asynchronous suspension&gt;
#31     main (file:///home/polen/Flutter/flutter/packages/flutter_tools/bin/flutter_tools.dart:8)
#32     _startIsolate.&lt;anonymous closure&gt; (dart:isolate-patch/dart:isolate/isolate_patch.dart:277)
#33     _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165)

</code></pre></div>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Analyzing /home/polen/workspaces/flutter/test_project...
No issues found!
Ran in 6.2s
"><pre class="notranslate"><code class="notranslate">Analyzing /home/polen/workspaces/flutter/test_project...
No issues found!
Ran in 6.2s

</code></pre></div>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="No issues found!
Ran in 6.2s
[polen@polen-dmi test_project]$ flutter doctor -v
[✓] Flutter (Channel master, v0.4.3-pre.16, on Linux, locale en_GB.UTF-8)
    • Flutter version 0.4.3-pre.16 at /home/polen/Flutter/flutter
    • Framework revision 21c2e47f29 (31 hours ago), 2018-05-08 23:23:34 -0700
    • Engine revision 11d6da3cd9
    • Dart version 2.0.0-dev.53.0.flutter-e6d7d67f4b

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at /home/polen/Android/Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.3
    • ANDROID_HOME = /home/polen/Android/Sdk
    • Java binary at: /home/polen/Android/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
    • All Android licenses accepted.

[✓] Android Studio (version 3.1)
    • Android Studio at /home/polen/Android/android-studio
    • Flutter plugin version 24.2.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] VS Code (version 1.23.0)
    • VS Code at /usr/share/code
    • Dart Code extension version 2.12.1

[✓] Connected devices (1 available)
    • Android SDK built for x86 64 • emulator-5554 • android-x64 • Android 8.0.0 (API 26) (emulator)

• No issues found!
"><pre class="notranslate"><code class="notranslate">No issues found!
Ran in 6.2s
[polen@polen-dmi test_project]$ flutter doctor -v
[✓] Flutter (Channel master, v0.4.3-pre.16, on Linux, locale en_GB.UTF-8)
    • Flutter version 0.4.3-pre.16 at /home/polen/Flutter/flutter
    • Framework revision 21c2e47f29 (31 hours ago), 2018-05-08 23:23:34 -0700
    • Engine revision 11d6da3cd9
    • Dart version 2.0.0-dev.53.0.flutter-e6d7d67f4b

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at /home/polen/Android/Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.3
    • ANDROID_HOME = /home/polen/Android/Sdk
    • Java binary at: /home/polen/Android/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
    • All Android licenses accepted.

[✓] Android Studio (version 3.1)
    • Android Studio at /home/polen/Android/android-studio
    • Flutter plugin version 24.2.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] VS Code (version 1.23.0)
    • VS Code at /usr/share/code
    • Dart Code extension version 2.12.1

[✓] Connected devices (1 available)
    • Android SDK built for x86 64 • emulator-5554 • android-x64 • Android 8.0.0 (API 26) (emulator)

• No issues found!

</code></pre></div>
<h2 dir="auto">Steps to Reproduce</h2>
<ol dir="auto">
<li>Open flutter_gallery project</li>
<li>Put enableFlutterDriverExtension(); in lib/main.dart</li>
<li>Run app, try to use android keyboard in any input field, it is not showing.</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import 'package:flutter/widgets.dart';
import 'package:flutter_driver/driver_extension.dart';
import 'gallery/app.dart';

void main() {
  enableFlutterDriverExtension();
  runApp(const GalleryApp());
}"><pre class="notranslate"><code class="notranslate">import 'package:flutter/widgets.dart';
import 'package:flutter_driver/driver_extension.dart';
import 'gallery/app.dart';

void main() {
  enableFlutterDriverExtension();
  runApp(const GalleryApp());
}
</code></pre></div>
<h2 dir="auto">Problem research</h2>
<p dir="auto">It seems like intended but obsolete behaviour artifacts and lack of documentation.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;flutter drive --help

Runs Flutter Driver tests for the current project.
...
-t, --target=&lt;path&gt;             The main entry-point file of the application, as run on the device.
                                If the --target option is omitted, but a file name is provided on
                                the command line, then that is used instead.
                                (defaults to &quot;lib/main.dart&quot;)
..."><pre class="notranslate"><code class="notranslate">&gt;flutter drive --help

Runs Flutter Driver tests for the current project.
...
-t, --target=&lt;path&gt;             The main entry-point file of the application, as run on the device.
                                If the --target option is omitted, but a file name is provided on
                                the command line, then that is used instead.
                                (defaults to "lib/main.dart")
...
</code></pre></div>
<p dir="auto"><strong>(defaults to "lib/main.dart")</strong> seems obsolete due to <a href="https://flutter.io/testing/" rel="nofollow">https://flutter.io/testing/</a> specifically says that you should create new entry point for "Creating instrumented Flutter apps", flutter_gallery follow this document correctly at least for last 2 years.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="176117527" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/5800" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/5800/hovercard" href="https://github.com/flutter/flutter/issues/5800">#5800</a> Partly about this confusion, seems related.</p>
<p dir="auto">If this is intended behaviour then <a href="https://docs.flutter.io/flutter/flutter_driver_extension/enableFlutterDriverExtension.html" rel="nofollow">https://docs.flutter.io/flutter/flutter_driver_extension/enableFlutterDriverExtension.html</a><br>
should say about it.</p>
<h2 dir="auto">Flutter Doctor</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[√] Flutter (Channel master, v0.2.1-pre.61, on Microsoft Windows [Version 10.0.16299.251], locale ru-RU)
    • Flutter version 0.2.1-pre.61 at c:\flutter
    • Framework revision 7865d319ba (2 hours ago), 2018-03-11 13:01:00 -0700
    • Engine revision 1d0da77995
    • Dart version 2.0.0-dev.33.0.flutter-b5b8080b2c

[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at C:\Users\Yfer\AppData\Local\Android\sdk
    • Android NDK at C:\Users\Yfer\AppData\Local\Android\sdk\ndk-bundle
    • Platform android-27, build-tools 27.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
    • All Android licenses accepted.

[√] Android Studio (version 3.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)

[√] IntelliJ IDEA Ultimate Edition (version 2017.3)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2017.3.4
    • Flutter plugin version 22.2.2
    • Dart plugin version 173.4548.30

[!] VS Code, 64-bit edition (version 1.20.1)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Dart Code extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.dart-code

[√] Connected devices (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)"><pre class="notranslate"><code class="notranslate">[√] Flutter (Channel master, v0.2.1-pre.61, on Microsoft Windows [Version 10.0.16299.251], locale ru-RU)
    • Flutter version 0.2.1-pre.61 at c:\flutter
    • Framework revision 7865d319ba (2 hours ago), 2018-03-11 13:01:00 -0700
    • Engine revision 1d0da77995
    • Dart version 2.0.0-dev.33.0.flutter-b5b8080b2c

[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at C:\Users\Yfer\AppData\Local\Android\sdk
    • Android NDK at C:\Users\Yfer\AppData\Local\Android\sdk\ndk-bundle
    • Platform android-27, build-tools 27.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
    • All Android licenses accepted.

[√] Android Studio (version 3.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)

[√] IntelliJ IDEA Ultimate Edition (version 2017.3)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2017.3.4
    • Flutter plugin version 22.2.2
    • Dart plugin version 173.4548.30

[!] VS Code, 64-bit edition (version 1.20.1)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Dart Code extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.dart-code

[√] Connected devices (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)
</code></pre></div>