<p dir="auto">Hi, I'm trying to debug my app by visual studio code and when I run the app for debugging, the app starts and stays on a white screen but it's fine when I use the <code class="notranslate">flutter run</code> command on terminal.<br>
It works fine when I use android studio!</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[~]$ flutter doctor -v                                                                                                           
[✓] Flutter (Channel master, v0.9.3-pre.20, on Linux, locale en_US.UTF-8)
    • Flutter version 0.9.3-pre.20 at /home/moein/Documents/flutter-dev
    • Framework revision 6d134e0c86 (4 days ago), 2018-09-23 00:43:05 -0700
    • Engine revision 57fd394e59
    • Dart version 2.1.0-dev.5.0.flutter-654c4babc8

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.0)
    • Android SDK at /home/moein/Android/Sdk
    • Android NDK at /home/moein/Android/Sdk/ndk-bundle
    • Platform android-28, build-tools 28.0.0
    • Java binary at: /opt/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 /opt/android-studio
    • Flutter plugin version 27.1.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] VS Code (version 1.27.2)
    • VS Code at /usr/share/code
    • Flutter extension version 2.18.0

[✓] Connected devices (1 available)
    • SM J730F • 5200f825ee301577 • android-arm • Android 7.0 (API 24)

• No issues found!
"><pre class="notranslate"><code class="notranslate">[~]$ flutter doctor -v                                                                                                           
[✓] Flutter (Channel master, v0.9.3-pre.20, on Linux, locale en_US.UTF-8)
    • Flutter version 0.9.3-pre.20 at /home/moein/Documents/flutter-dev
    • Framework revision 6d134e0c86 (4 days ago), 2018-09-23 00:43:05 -0700
    • Engine revision 57fd394e59
    • Dart version 2.1.0-dev.5.0.flutter-654c4babc8

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.0)
    • Android SDK at /home/moein/Android/Sdk
    • Android NDK at /home/moein/Android/Sdk/ndk-bundle
    • Platform android-28, build-tools 28.0.0
    • Java binary at: /opt/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 /opt/android-studio
    • Flutter plugin version 27.1.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] VS Code (version 1.27.2)
    • VS Code at /usr/share/code
    • Flutter extension version 2.18.0

[✓] Connected devices (1 available)
    • SM J730F • 5200f825ee301577 • android-arm • Android 7.0 (API 24)

• No issues found!

</code></pre></div>
<h2 dir="auto">Steps to Reproduce</h2>
<p dir="auto">I am attempting to run a test I created, this is the <code class="notranslate">unit_test.dart</code></p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import 'package:do_and_stuff/tools/auth.dart';
import 'package:test/test.dart';

void main() {
  test('No Username or Password', () async {
    final result = await Auth.signInEmailAndPassword(&quot;&quot;, &quot;&quot;);
    expect(&quot;Missing&quot;, result);
  });
}"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">'package:do_and_stuff/tools/auth.dart'</span>;
<span class="pl-k">import</span> <span class="pl-s">'package:test/test.dart'</span>;

<span class="pl-k">void</span> <span class="pl-en">main</span>() {
  <span class="pl-en">test</span>(<span class="pl-s">'No Username or Password'</span>, () <span class="pl-k">async</span> {
    <span class="pl-k">final</span> result <span class="pl-k">=</span> <span class="pl-k">await</span> <span class="pl-c1">Auth</span>.<span class="pl-en">signInEmailAndPassword</span>(<span class="pl-s">""</span>, <span class="pl-s">""</span>);
    <span class="pl-en">expect</span>(<span class="pl-s">"Missing"</span>, result);
  });
}</pre></div>
<p dir="auto">This is the code for <code class="notranslate">Auth.signInEmailAndPassword</code></p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="  static Future&lt;dynamic&gt; signInEmailAndPassword(
      String givenEmail, String givenPassword) async {
    try {
      FirebaseUser user = await _auth.signInWithEmailAndPassword(
          email: givenEmail, password: givenPassword);
      Auth.emailAddress = user.email;
      Auth.googleAccount = false;
      return true;
    } catch (error) {
      return &quot;Missing&quot;;
    }
  }"><pre class="notranslate">  <span class="pl-k">static</span> <span class="pl-c1">Future</span>&lt;<span class="pl-c1">dynamic</span>&gt; <span class="pl-en">signInEmailAndPassword</span>(
      <span class="pl-c1">String</span> givenEmail, <span class="pl-c1">String</span> givenPassword) <span class="pl-k">async</span> {
    <span class="pl-k">try</span> {
      <span class="pl-c1">FirebaseUser</span> user <span class="pl-k">=</span> <span class="pl-k">await</span> _auth.<span class="pl-en">signInWithEmailAndPassword</span>(
          email<span class="pl-k">:</span> givenEmail, password<span class="pl-k">:</span> givenPassword);
      <span class="pl-c1">Auth</span>.emailAddress <span class="pl-k">=</span> user.email;
      <span class="pl-c1">Auth</span>.googleAccount <span class="pl-k">=</span> <span class="pl-c1">false</span>;
      <span class="pl-k">return</span> <span class="pl-c1">true</span>;
    } <span class="pl-k">catch</span> (error) {
      <span class="pl-k">return</span> <span class="pl-s">"Missing"</span>;
    }
  }</pre></div>
<h2 dir="auto">Logs</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Expected: 'Missing'
  Actual: MissingPluginException:&lt;MissingPluginException(No implementation found for method signInWithEmailAndPassword on channel plugins.flutter.io/firebase_auth)&gt;
   Which: not an &lt;Instance of 'String'&gt;

package:test             expect
test\unit_test.dart 7:5  main.&lt;fn&gt;
===== asynchronous gap ===========================
dart:async               _AsyncAwaitCompleter.completeError
test\unit_test.dart      main.&lt;fn&gt;
===== asynchronous gap ===========================
dart:async               _asyncThenWrapperHelper
test\unit_test.dart      main.&lt;fn&gt;"><pre class="notranslate"><code class="notranslate">Expected: 'Missing'
  Actual: MissingPluginException:&lt;MissingPluginException(No implementation found for method signInWithEmailAndPassword on channel plugins.flutter.io/firebase_auth)&gt;
   Which: not an &lt;Instance of 'String'&gt;

package:test             expect
test\unit_test.dart 7:5  main.&lt;fn&gt;
===== asynchronous gap ===========================
dart:async               _AsyncAwaitCompleter.completeError
test\unit_test.dart      main.&lt;fn&gt;
===== asynchronous gap ===========================
dart:async               _asyncThenWrapperHelper
test\unit_test.dart      main.&lt;fn&gt;
</code></pre></div>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="flutter doctor -v
[√] Flutter (Channel beta, v0.9.4, on Microsoft Windows [Version 10.0.17134.407], locale en-US)
    • Flutter version 0.9.4 at C:\Users\Daniel\flutter
    • Framework revision f37c235c32 (10 weeks ago), 2018-09-25 17:45:40 -0400
    • Engine revision 74625aed32
    • Dart version 2.1.0-dev.5.0.flutter-a2eb050044

[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at C:\Users\Daniel\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.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-1136-b06)
    • All Android licenses accepted.

[√] Android Studio (version 3.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 31.1.1
    • Dart plugin version 181.5656
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[!] IntelliJ IDEA Ultimate Edition (version 2018.2)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2018.2.5
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.io/intellij-setup/#installing-the-plugins

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

[√] Connected devices (1 available)
    • Pixel XL • HT73X0200063 • android-arm64 • Android 9 (API 28)

! Doctor found issues in 2 categories."><pre class="notranslate"><code class="notranslate">flutter doctor -v
[√] Flutter (Channel beta, v0.9.4, on Microsoft Windows [Version 10.0.17134.407], locale en-US)
    • Flutter version 0.9.4 at C:\Users\Daniel\flutter
    • Framework revision f37c235c32 (10 weeks ago), 2018-09-25 17:45:40 -0400
    • Engine revision 74625aed32
    • Dart version 2.1.0-dev.5.0.flutter-a2eb050044

[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at C:\Users\Daniel\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.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-1136-b06)
    • All Android licenses accepted.

[√] Android Studio (version 3.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 31.1.1
    • Dart plugin version 181.5656
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[!] IntelliJ IDEA Ultimate Edition (version 2018.2)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2018.2.5
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.io/intellij-setup/#installing-the-plugins

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

[√] Connected devices (1 available)
    • Pixel XL • HT73X0200063 • android-arm64 • Android 9 (API 28)

! Doctor found issues in 2 categories.
</code></pre></div>