<p dir="auto">Hi everyone, I seem to be having a problem with the keyboard not showing even when a textfield's focus node state is true. I ran into this bug using the image_picker example code and appending a textfield with a focus node on it, adding a listener to the focus node and requesting focus on that textfield after picking an image from image_picker.</p>
<h2 dir="auto">Steps to Reproduce</h2>
<ol dir="auto">
<li>Open the demo image_picker application</li>
<li>Modify the example to the following code to include the text field and focus node elements:</li>
</ol>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import 'dart:async';
import 'dart:io';

import 'package:flutter/material.dart';
import 'package:image_picker/image_picker.dart';
import 'package:video_player/video_player.dart';

void main() {
  runApp(new MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'Image Picker Demo',
      home: new MyHomePage(title: 'Image Picker Example'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() =&gt; new _MyHomePageState();
}

class _MyHomePageState extends State&lt;MyHomePage&gt; {
  Future&lt;File&gt; _imageFile;
  bool isVideo = false;
  VideoPlayerController _controller;
  VoidCallback listener;
  final FocusNode messageFocusNode = FocusNode();

  void _onImageButtonPressed(ImageSource source) {
    setState(() {
      if (_controller != null) {
        _controller.setVolume(0.0);
        _controller.removeListener(listener);
      }
      if (isVideo) {
        ImagePicker.pickVideo(source: source).then((File file) {
          if (file != null &amp;&amp; mounted) {
            setState(() {
              _controller = VideoPlayerController.file(file)
                ..addListener(listener)
                ..setVolume(1.0)
                ..initialize()
                ..setLooping(true)
                ..play();
            });
          }
        });
      } else {
        _imageFile = ImagePicker.pickImage(source: source);
      }
    });
    setState(() {
      FocusScope.of(context).requestFocus(messageFocusNode);
    });
  }

  @override
  void deactivate() {
    if (_controller != null) {
      _controller.setVolume(0.0);
      _controller.removeListener(listener);
    }
    super.deactivate();
  }

  @override
  void dispose() {
    if (_controller != null) {
      _controller.dispose();
    }
    super.dispose();
  }

  @override
  void initState() {
    super.initState();
    messageFocusNode.addListener(_onFocusChange);
    listener = () {
      setState(() {});
    };
    messageFocusNode.addListener(() =&gt;
        print('focusNode updated: hasFocus: ${messageFocusNode.hasFocus}'));
  }

  void _onFocusChange() {
    debugPrint(&quot;Focus: &quot; + messageFocusNode.hasFocus.toString());
  }

  Widget _previewVideo(VideoPlayerController controller) {
    if (controller == null) {
      return const Text(
        'You have not yet picked a video',
        textAlign: TextAlign.center,
      );
    } else if (controller.value.initialized) {
      return Padding(
        padding: const EdgeInsets.all(10.0),
        child: AspectRatioVideo(controller),
      );
    } else {
      return const Text(
        'Error Loading Video',
        textAlign: TextAlign.center,
      );
    }
  }

  Widget _previewImage() {
    return FutureBuilder&lt;File&gt;(
        future: _imageFile,
        builder: (BuildContext context, AsyncSnapshot&lt;File&gt; snapshot) {
          if (snapshot.connectionState == ConnectionState.done &amp;&amp;
              snapshot.data != null) {
            return Image.file(snapshot.data);
          } else if (snapshot.error != null) {
            return const Text(
              'Error picking image.',
              textAlign: TextAlign.center,
            );
          } else {
            return const Text(
              'You have not yet picked an image.',
              textAlign: TextAlign.center,
            );
          }
        });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          children: &lt;Widget&gt;[
            Expanded(
              child: isVideo ? _previewVideo(_controller) : _previewImage(),
            ),
            Expanded(
                child: new TextField(
              keyboardType: TextInputType.multiline,
              maxLines: 1000,
              focusNode: messageFocusNode,
            ))
          ],
        ),
      ),
      floatingActionButton: Column(
        mainAxisAlignment: MainAxisAlignment.end,
        children: &lt;Widget&gt;[
          FloatingActionButton(
            onPressed: () {
              isVideo = false;
              _onImageButtonPressed(ImageSource.gallery);
            },
            heroTag: 'image0',
            tooltip: 'Pick Image from gallery',
            child: const Icon(Icons.photo_library),
          ),
          Padding(
            padding: const EdgeInsets.only(top: 16.0),
            child: FloatingActionButton(
              onPressed: () {
                isVideo = false;
                _onImageButtonPressed(ImageSource.camera);
              },
              heroTag: 'image1',
              tooltip: 'Take a Photo',
              child: const Icon(Icons.camera_alt),
            ),
          ),
          Padding(
            padding: const EdgeInsets.only(top: 16.0),
            child: FloatingActionButton(
              backgroundColor: Colors.red,
              onPressed: () {
                isVideo = true;
                _onImageButtonPressed(ImageSource.gallery);
              },
              heroTag: 'video0',
              tooltip: 'Pick Video from gallery',
              child: const Icon(Icons.video_library),
            ),
          ),
          Padding(
            padding: const EdgeInsets.only(top: 16.0),
            child: FloatingActionButton(
              backgroundColor: Colors.red,
              onPressed: () {
                isVideo = true;
                _onImageButtonPressed(ImageSource.camera);
              },
              heroTag: 'video1',
              tooltip: 'Take a Video',
              child: const Icon(Icons.videocam),
            ),
          ),
        ],
      ),
    );
  }
}

class AspectRatioVideo extends StatefulWidget {
  final VideoPlayerController controller;

  AspectRatioVideo(this.controller);

  @override
  AspectRatioVideoState createState() =&gt; new AspectRatioVideoState();
}

class AspectRatioVideoState extends State&lt;AspectRatioVideo&gt; {
  VideoPlayerController get controller =&gt; widget.controller;
  bool initialized = false;

  VoidCallback listener;

  @override
  void initState() {
    super.initState();
    listener = () {
      if (!mounted) {
        return;
      }
      if (initialized != controller.value.initialized) {
        initialized = controller.value.initialized;
        setState(() {});
      }
    };
    controller.addListener(listener);
  }

  @override
  Widget build(BuildContext context) {
    if (initialized) {
      final Size size = controller.value.size;
      return new Center(
        child: new AspectRatio(
          aspectRatio: size.width / size.height,
          child: new VideoPlayer(controller),
        ),
      );
    } else {
      return new Container();
    }
  }
}"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">'dart:async'</span>;
<span class="pl-k">import</span> <span class="pl-s">'dart:io'</span>;

<span class="pl-k">import</span> <span class="pl-s">'package:flutter/material.dart'</span>;
<span class="pl-k">import</span> <span class="pl-s">'package:image_picker/image_picker.dart'</span>;
<span class="pl-k">import</span> <span class="pl-s">'package:video_player/video_player.dart'</span>;

<span class="pl-k">void</span> <span class="pl-en">main</span>() {
  <span class="pl-en">runApp</span>(<span class="pl-k">new</span> <span class="pl-c1">MyApp</span>());
}

<span class="pl-k">class</span> <span class="pl-c1">MyApp</span> <span class="pl-k">extends</span> <span class="pl-c1">StatelessWidget</span> {
  <span class="pl-k">@override</span>
  <span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) {
    <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-c1">MaterialApp</span>(
      title<span class="pl-k">:</span> <span class="pl-s">'Image Picker Demo'</span>,
      home<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">MyHomePage</span>(title<span class="pl-k">:</span> <span class="pl-s">'Image Picker Example'</span>),
    );
  }
}

<span class="pl-k">class</span> <span class="pl-c1">MyHomePage</span> <span class="pl-k">extends</span> <span class="pl-c1">StatefulWidget</span> {
  <span class="pl-c1">MyHomePage</span>({<span class="pl-c1">Key</span> key, <span class="pl-c1">this</span>.title}) <span class="pl-k">:</span> <span class="pl-c1">super</span>(key<span class="pl-k">:</span> key);

  <span class="pl-k">final</span> <span class="pl-c1">String</span> title;

  <span class="pl-k">@override</span>
  <span class="pl-c1">_MyHomePageState</span> <span class="pl-en">createState</span>() <span class="pl-k">=&gt;</span> <span class="pl-k">new</span> <span class="pl-c1">_MyHomePageState</span>();
}

<span class="pl-k">class</span> <span class="pl-c1">_MyHomePageState</span> <span class="pl-k">extends</span> <span class="pl-c1">State</span>&lt;<span class="pl-c1">MyHomePage</span>&gt; {
  <span class="pl-c1">Future</span>&lt;<span class="pl-c1">File</span>&gt; _imageFile;
  <span class="pl-c1">bool</span> isVideo <span class="pl-k">=</span> <span class="pl-c1">false</span>;
  <span class="pl-c1">VideoPlayerController</span> _controller;
  <span class="pl-c1">VoidCallback</span> listener;
  <span class="pl-k">final</span> <span class="pl-c1">FocusNode</span> messageFocusNode <span class="pl-k">=</span> <span class="pl-c1">FocusNode</span>();

  <span class="pl-k">void</span> <span class="pl-en">_onImageButtonPressed</span>(<span class="pl-c1">ImageSource</span> source) {
    <span class="pl-en">setState</span>(() {
      <span class="pl-k">if</span> (_controller <span class="pl-k">!=</span> <span class="pl-c1">null</span>) {
        _controller.<span class="pl-en">setVolume</span>(<span class="pl-c1">0.0</span>);
        _controller.<span class="pl-en">removeListener</span>(listener);
      }
      <span class="pl-k">if</span> (isVideo) {
        <span class="pl-c1">ImagePicker</span>.<span class="pl-en">pickVideo</span>(source<span class="pl-k">:</span> source).<span class="pl-en">then</span>((<span class="pl-c1">File</span> file) {
          <span class="pl-k">if</span> (file <span class="pl-k">!=</span> <span class="pl-c1">null</span> <span class="pl-k">&amp;&amp;</span> mounted) {
            <span class="pl-en">setState</span>(() {
              _controller <span class="pl-k">=</span> <span class="pl-c1">VideoPlayerController</span>.<span class="pl-en">file</span>(file)
                ..<span class="pl-en">addListener</span>(listener)
                ..<span class="pl-en">setVolume</span>(<span class="pl-c1">1.0</span>)
                ..<span class="pl-en">initialize</span>()
                ..<span class="pl-en">setLooping</span>(<span class="pl-c1">true</span>)
                ..<span class="pl-en">play</span>();
            });
          }
        });
      } <span class="pl-k">else</span> {
        _imageFile <span class="pl-k">=</span> <span class="pl-c1">ImagePicker</span>.<span class="pl-en">pickImage</span>(source<span class="pl-k">:</span> source);
      }
    });
    <span class="pl-en">setState</span>(() {
      <span class="pl-c1">FocusScope</span>.<span class="pl-en">of</span>(context).<span class="pl-en">requestFocus</span>(messageFocusNode);
    });
  }

  <span class="pl-k">@override</span>
  <span class="pl-k">void</span> <span class="pl-en">deactivate</span>() {
    <span class="pl-k">if</span> (_controller <span class="pl-k">!=</span> <span class="pl-c1">null</span>) {
      _controller.<span class="pl-en">setVolume</span>(<span class="pl-c1">0.0</span>);
      _controller.<span class="pl-en">removeListener</span>(listener);
    }
    <span class="pl-c1">super</span>.<span class="pl-en">deactivate</span>();
  }

  <span class="pl-k">@override</span>
  <span class="pl-k">void</span> <span class="pl-en">dispose</span>() {
    <span class="pl-k">if</span> (_controller <span class="pl-k">!=</span> <span class="pl-c1">null</span>) {
      _controller.<span class="pl-en">dispose</span>();
    }
    <span class="pl-c1">super</span>.<span class="pl-en">dispose</span>();
  }

  <span class="pl-k">@override</span>
  <span class="pl-k">void</span> <span class="pl-en">initState</span>() {
    <span class="pl-c1">super</span>.<span class="pl-en">initState</span>();
    messageFocusNode.<span class="pl-en">addListener</span>(_onFocusChange);
    listener <span class="pl-k">=</span> () {
      <span class="pl-en">setState</span>(() {});
    };
    messageFocusNode.<span class="pl-en">addListener</span>(() <span class="pl-k">=&gt;</span>
        <span class="pl-en">print</span>(<span class="pl-s">'focusNode updated: hasFocus: <span class="pl-s">${<span class="pl-v">messageFocusNode</span>.<span class="pl-v">hasFocus</span>}</span>'</span>));
  }

  <span class="pl-k">void</span> <span class="pl-en">_onFocusChange</span>() {
    <span class="pl-en">debugPrint</span>(<span class="pl-s">"Focus: "</span> <span class="pl-k">+</span> messageFocusNode.hasFocus.<span class="pl-en">toString</span>());
  }

  <span class="pl-c1">Widget</span> <span class="pl-en">_previewVideo</span>(<span class="pl-c1">VideoPlayerController</span> controller) {
    <span class="pl-k">if</span> (controller <span class="pl-k">==</span> <span class="pl-c1">null</span>) {
      <span class="pl-k">return</span> <span class="pl-k">const</span> <span class="pl-c1">Text</span>(
        <span class="pl-s">'You have not yet picked a video'</span>,
        textAlign<span class="pl-k">:</span> <span class="pl-c1">TextAlign</span>.center,
      );
    } <span class="pl-k">else</span> <span class="pl-k">if</span> (controller.value.initialized) {
      <span class="pl-k">return</span> <span class="pl-c1">Padding</span>(
        padding<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">EdgeInsets</span>.<span class="pl-en">all</span>(<span class="pl-c1">10.0</span>),
        child<span class="pl-k">:</span> <span class="pl-c1">AspectRatioVideo</span>(controller),
      );
    } <span class="pl-k">else</span> {
      <span class="pl-k">return</span> <span class="pl-k">const</span> <span class="pl-c1">Text</span>(
        <span class="pl-s">'Error Loading Video'</span>,
        textAlign<span class="pl-k">:</span> <span class="pl-c1">TextAlign</span>.center,
      );
    }
  }

  <span class="pl-c1">Widget</span> <span class="pl-en">_previewImage</span>() {
    <span class="pl-k">return</span> <span class="pl-c1">FutureBuilder</span>&lt;<span class="pl-c1">File</span>&gt;(
        future<span class="pl-k">:</span> _imageFile,
        builder<span class="pl-k">:</span> (<span class="pl-c1">BuildContext</span> context, <span class="pl-c1">AsyncSnapshot</span>&lt;<span class="pl-c1">File</span>&gt; snapshot) {
          <span class="pl-k">if</span> (snapshot.connectionState <span class="pl-k">==</span> <span class="pl-c1">ConnectionState</span>.done <span class="pl-k">&amp;&amp;</span>
              snapshot.data <span class="pl-k">!=</span> <span class="pl-c1">null</span>) {
            <span class="pl-k">return</span> <span class="pl-c1">Image</span>.<span class="pl-en">file</span>(snapshot.data);
          } <span class="pl-k">else</span> <span class="pl-k">if</span> (snapshot.error <span class="pl-k">!=</span> <span class="pl-c1">null</span>) {
            <span class="pl-k">return</span> <span class="pl-k">const</span> <span class="pl-c1">Text</span>(
              <span class="pl-s">'Error picking image.'</span>,
              textAlign<span class="pl-k">:</span> <span class="pl-c1">TextAlign</span>.center,
            );
          } <span class="pl-k">else</span> {
            <span class="pl-k">return</span> <span class="pl-k">const</span> <span class="pl-c1">Text</span>(
              <span class="pl-s">'You have not yet picked an image.'</span>,
              textAlign<span class="pl-k">:</span> <span class="pl-c1">TextAlign</span>.center,
            );
          }
        });
  }

  <span class="pl-k">@override</span>
  <span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) {
    <span class="pl-k">return</span> <span class="pl-c1">Scaffold</span>(
      appBar<span class="pl-k">:</span> <span class="pl-c1">AppBar</span>(
        title<span class="pl-k">:</span> <span class="pl-c1">Text</span>(widget.title),
      ),
      body<span class="pl-k">:</span> <span class="pl-c1">Center</span>(
        child<span class="pl-k">:</span> <span class="pl-c1">Column</span>(
          children<span class="pl-k">:</span> <span class="pl-k">&lt;</span><span class="pl-c1">Widget</span><span class="pl-k">&gt;</span>[
            <span class="pl-c1">Expanded</span>(
              child<span class="pl-k">:</span> isVideo <span class="pl-k">?</span> <span class="pl-en">_previewVideo</span>(_controller) <span class="pl-k">:</span> <span class="pl-en">_previewImage</span>(),
            ),
            <span class="pl-c1">Expanded</span>(
                child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">TextField</span>(
              keyboardType<span class="pl-k">:</span> <span class="pl-c1">TextInputType</span>.multiline,
              maxLines<span class="pl-k">:</span> <span class="pl-c1">1000</span>,
              focusNode<span class="pl-k">:</span> messageFocusNode,
            ))
          ],
        ),
      ),
      floatingActionButton<span class="pl-k">:</span> <span class="pl-c1">Column</span>(
        mainAxisAlignment<span class="pl-k">:</span> <span class="pl-c1">MainAxisAlignment</span>.end,
        children<span class="pl-k">:</span> <span class="pl-k">&lt;</span><span class="pl-c1">Widget</span><span class="pl-k">&gt;</span>[
          <span class="pl-c1">FloatingActionButton</span>(
            onPressed<span class="pl-k">:</span> () {
              isVideo <span class="pl-k">=</span> <span class="pl-c1">false</span>;
              <span class="pl-en">_onImageButtonPressed</span>(<span class="pl-c1">ImageSource</span>.gallery);
            },
            heroTag<span class="pl-k">:</span> <span class="pl-s">'image0'</span>,
            tooltip<span class="pl-k">:</span> <span class="pl-s">'Pick Image from gallery'</span>,
            child<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">Icon</span>(<span class="pl-c1">Icons</span>.photo_library),
          ),
          <span class="pl-c1">Padding</span>(
            padding<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">EdgeInsets</span>.<span class="pl-en">only</span>(top<span class="pl-k">:</span> <span class="pl-c1">16.0</span>),
            child<span class="pl-k">:</span> <span class="pl-c1">FloatingActionButton</span>(
              onPressed<span class="pl-k">:</span> () {
                isVideo <span class="pl-k">=</span> <span class="pl-c1">false</span>;
                <span class="pl-en">_onImageButtonPressed</span>(<span class="pl-c1">ImageSource</span>.camera);
              },
              heroTag<span class="pl-k">:</span> <span class="pl-s">'image1'</span>,
              tooltip<span class="pl-k">:</span> <span class="pl-s">'Take a Photo'</span>,
              child<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">Icon</span>(<span class="pl-c1">Icons</span>.camera_alt),
            ),
          ),
          <span class="pl-c1">Padding</span>(
            padding<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">EdgeInsets</span>.<span class="pl-en">only</span>(top<span class="pl-k">:</span> <span class="pl-c1">16.0</span>),
            child<span class="pl-k">:</span> <span class="pl-c1">FloatingActionButton</span>(
              backgroundColor<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.red,
              onPressed<span class="pl-k">:</span> () {
                isVideo <span class="pl-k">=</span> <span class="pl-c1">true</span>;
                <span class="pl-en">_onImageButtonPressed</span>(<span class="pl-c1">ImageSource</span>.gallery);
              },
              heroTag<span class="pl-k">:</span> <span class="pl-s">'video0'</span>,
              tooltip<span class="pl-k">:</span> <span class="pl-s">'Pick Video from gallery'</span>,
              child<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">Icon</span>(<span class="pl-c1">Icons</span>.video_library),
            ),
          ),
          <span class="pl-c1">Padding</span>(
            padding<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">EdgeInsets</span>.<span class="pl-en">only</span>(top<span class="pl-k">:</span> <span class="pl-c1">16.0</span>),
            child<span class="pl-k">:</span> <span class="pl-c1">FloatingActionButton</span>(
              backgroundColor<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.red,
              onPressed<span class="pl-k">:</span> () {
                isVideo <span class="pl-k">=</span> <span class="pl-c1">true</span>;
                <span class="pl-en">_onImageButtonPressed</span>(<span class="pl-c1">ImageSource</span>.camera);
              },
              heroTag<span class="pl-k">:</span> <span class="pl-s">'video1'</span>,
              tooltip<span class="pl-k">:</span> <span class="pl-s">'Take a Video'</span>,
              child<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">Icon</span>(<span class="pl-c1">Icons</span>.videocam),
            ),
          ),
        ],
      ),
    );
  }
}

<span class="pl-k">class</span> <span class="pl-c1">AspectRatioVideo</span> <span class="pl-k">extends</span> <span class="pl-c1">StatefulWidget</span> {
  <span class="pl-k">final</span> <span class="pl-c1">VideoPlayerController</span> controller;

  <span class="pl-c1">AspectRatioVideo</span>(<span class="pl-c1">this</span>.controller);

  <span class="pl-k">@override</span>
  <span class="pl-c1">AspectRatioVideoState</span> <span class="pl-en">createState</span>() <span class="pl-k">=&gt;</span> <span class="pl-k">new</span> <span class="pl-c1">AspectRatioVideoState</span>();
}

<span class="pl-k">class</span> <span class="pl-c1">AspectRatioVideoState</span> <span class="pl-k">extends</span> <span class="pl-c1">State</span>&lt;<span class="pl-c1">AspectRatioVideo</span>&gt; {
  <span class="pl-c1">VideoPlayerController</span> <span class="pl-k">get</span> controller <span class="pl-k">=&gt;</span> widget.controller;
  <span class="pl-c1">bool</span> initialized <span class="pl-k">=</span> <span class="pl-c1">false</span>;

  <span class="pl-c1">VoidCallback</span> listener;

  <span class="pl-k">@override</span>
  <span class="pl-k">void</span> <span class="pl-en">initState</span>() {
    <span class="pl-c1">super</span>.<span class="pl-en">initState</span>();
    listener <span class="pl-k">=</span> () {
      <span class="pl-k">if</span> (<span class="pl-k">!</span>mounted) {
        <span class="pl-k">return</span>;
      }
      <span class="pl-k">if</span> (initialized <span class="pl-k">!=</span> controller.value.initialized) {
        initialized <span class="pl-k">=</span> controller.value.initialized;
        <span class="pl-en">setState</span>(() {});
      }
    };
    controller.<span class="pl-en">addListener</span>(listener);
  }

  <span class="pl-k">@override</span>
  <span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) {
    <span class="pl-k">if</span> (initialized) {
      <span class="pl-k">final</span> <span class="pl-c1">Size</span> size <span class="pl-k">=</span> controller.value.size;
      <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-c1">Center</span>(
        child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">AspectRatio</span>(
          aspectRatio<span class="pl-k">:</span> size.width <span class="pl-k">/</span> size.height,
          child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">VideoPlayer</span>(controller),
        ),
      );
    } <span class="pl-k">else</span> {
      <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-c1">Container</span>();
    }
  }
}</pre></div>
<ol start="3" dir="auto">
<li>Observe that after clicking FABs to choose an image, the debug statement prints "focusNode updated: hasFocus: true" but the keyboard on the application does not popup.</li>
</ol>
<h2 dir="auto">Logs</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[  +12 ms] /Users/preritoberai/Library/Android/sdk/platform-tools/adb -s df6427c4 logcat -v time -t 1
[ +115 ms] Exit code 0 from: /Users/preritoberai/Library/Android/sdk/platform-tools/adb -s df6427c4 logcat -v time -t 1
[        ] --------- beginning of main
           08-16 13:45:27.352 W/MdnsDeviceScannerEntry( 8412): Invalid remote control notifications enabled status; 0
[   +5 ms] /Users/preritoberai/Library/Android/sdk/platform-tools/adb -s df6427c4 logcat -v time
[ +557 ms] DependencyChecker: /Users/preritoberai/Documents/punchMob_CodeLabs/plugins/packages/image_picker/example/lib/main.dart is newer than 2018-08-16 13:33:22.248
[   +3 ms] /Users/preritoberai/Library/Android/sdk/platform-tools/adb version
[  +25 ms] Android Debug Bridge version 1.0.39
           Version 0.0.1-4500957
           Installed as /Users/preritoberai/Library/Android/sdk/platform-tools/adb
[   +3 ms] /Users/preritoberai/Library/Android/sdk/platform-tools/adb start-server
[  +23 ms] Building APK
[  +11 ms] Running 'gradlew assembleDebug'...
[   +2 ms] [android/] /Users/preritoberai/Documents/punchMob_CodeLabs/plugins/packages/image_picker/example/android/gradlew -Pverbose=true -Ptarget=/Users/preritoberai/Documents/punchMob_CodeLabs/plugins/packages/image_picker/example/lib/main.dart -Ppreview-dart-2=true -Ptarget-platform=android-arm64 assembleDebug
[+1771 ms] :app:preBuild UP-TO-DATE
[   +2 ms] :image_picker:preBuild UP-TO-DATE
[        ] :image_picker:preDebugBuild UP-TO-DATE
[   +1 ms] :image_picker:checkDebugManifest UP-TO-DATE
[   +1 ms] :image_picker:processDebugManifest UP-TO-DATE
[        ] :video_player:preBuild UP-TO-DATE
[        ] :video_player:preDebugBuild UP-TO-DATE
[   +1 ms] :video_player:checkDebugManifest UP-TO-DATE
[   +9 ms] :video_player:processDebugManifest UP-TO-DATE
[  +94 ms] :app:preDebugBuild UP-TO-DATE
[  +21 ms] :image_picker:compileDebugAidl UP-TO-DATE
[   +1 ms] :video_player:compileDebugAidl UP-TO-DATE
[   +2 ms] :app:compileDebugAidl UP-TO-DATE
[   +6 ms] :image_picker:packageDebugRenderscript NO-SOURCE
[        ] :video_player:packageDebugRenderscript NO-SOURCE
[  +23 ms] :app:compileDebugRenderscript UP-TO-DATE
[  +54 ms] :app:flutterBuildX86Jar UP-TO-DATE
[        ] :app:checkDebugManifest UP-TO-DATE
[        ] :app:generateDebugBuildConfig UP-TO-DATE
[  +10 ms] :app:prepareLintJar UP-TO-DATE
[        ] :app:cleanMergeDebugAssets
[ +696 ms] :app:flutterBuildDebug
[        ] [  +10 ms] [/Users/preritoberai/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +44 ms] [  +52 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] [        ] origin/dev
[        ] [        ] [/Users/preritoberai/flutter/] git rev-parse --abbrev-ref HEAD
[  +10 ms] [  +11 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] [        ] dev
[        ] [   +1 ms] [/Users/preritoberai/flutter/] git ls-remote --get-url origin
[   +9 ms] [  +11 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] [        ] https://github.com/flutter/flutter.git
[        ] [        ] [/Users/preritoberai/flutter/] git log -n 1 --pretty=format:%H
[  +10 ms] [  +12 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[        ] [        ] 66091f969653fd3535b265ddcd87436901858a1d
[        ] [        ] [/Users/preritoberai/flutter/] git log -n 1 --pretty=format:%ar
[  +12 ms] [  +12 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[        ] [        ] 5 weeks ago
[        ] [   +1 ms] [/Users/preritoberai/flutter/] git describe --match v*.*.* --first-parent --long --tags
[  +30 ms] [  +30 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[        ] [        ] v0.5.7-0-g66091f969
[ +414 ms] [ +412 ms] Found plugin image_picker at /Users/preritoberai/Documents/punchMob_CodeLabs/plugins/packages/image_picker/
[  +20 ms] [  +16 ms] Found plugin video_player at /Users/preritoberai/flutter/.pub-cache/hosted/pub.dartlang.org/video_player-0.5.2/
[ +719 ms] [ +717 ms] /Users/preritoberai/flutter/bin/cache/dart-sdk/bin/dart /Users/preritoberai/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root /Users/preritoberai/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --strong --target=flutter --no-link-platform --incremental --packages /Users/preritoberai/Documents/punchMob_CodeLabs/plugins/packages/image_picker/example/.packages --output-dill build/app.dill --depfile /Users/preritoberai/Documents/punchMob_CodeLabs/plugins/packages/image_picker/example/build/app/intermediates/flutter/debug/snapshot_blob.bin.d --filesystem-scheme org-dartlang-root /Users/preritoberai/Documents/punchMob_CodeLabs/plugins/packages/image_picker/example/lib/main.dart
[+2158 ms] [+2164 ms] Building bundle
[        ] [   +1 ms] Writing asset files to /Users/preritoberai/Documents/punchMob_CodeLabs/plugins/packages/image_picker/example/build/app/intermediates/flutter/debug/flutter_assets
[  +80 ms] [  +72 ms] Wrote /Users/preritoberai/Documents/punchMob_CodeLabs/plugins/packages/image_picker/example/build/app/intermediates/flutter/debug/flutter_assets
[        ] [   +8 ms] &quot;flutter bundle&quot; took 3,182ms.
[ +112 ms] :app:mergeDebugShaders UP-TO-DATE
[        ] :app:compileDebugShaders UP-TO-DATE
[        ] :app:generateDebugAssets UP-TO-DATE
[        ] :image_picker:mergeDebugShaders UP-TO-DATE
[        ] :image_picker:compileDebugShaders UP-TO-DATE
[        ] :image_picker:generateDebugAssets UP-TO-DATE
[        ] :image_picker:packageDebugAssets UP-TO-DATE
[        ] :video_player:mergeDebugShaders UP-TO-DATE
[   +9 ms] :video_player:compileDebugShaders UP-TO-DATE
[        ] :video_player:generateDebugAssets UP-TO-DATE
[        ] :video_player:packageDebugAssets UP-TO-DATE
[  +10 ms] :app:mergeDebugAssets
[ +284 ms] :app:copyFlutterAssetsDebug
[        ] :app:mainApkListPersistenceDebug UP-TO-DATE
[        ] :app:generateDebugResValues UP-TO-DATE
[        ] :app:generateDebugResources UP-TO-DATE
[   +1 ms] :image_picker:compileDebugRenderscript UP-TO-DATE
[        ] :image_picker:generateDebugResValues UP-TO-DATE
[        ] :image_picker:generateDebugResources UP-TO-DATE
[   +8 ms] :image_picker:packageDebugResources UP-TO-DATE
[        ] :video_player:compileDebugRenderscript UP-TO-DATE
[        ] :video_player:generateDebugResValues UP-TO-DATE
[        ] :video_player:generateDebugResources UP-TO-DATE
[  +10 ms] :video_player:packageDebugResources UP-TO-DATE
[  +86 ms] :app:mergeDebugResources UP-TO-DATE
[        ] :app:createDebugCompatibleScreenManifests UP-TO-DATE
[  +11 ms] :app:processDebugManifest UP-TO-DATE
[        ] :app:splitsDiscoveryTaskDebug UP-TO-DATE
[   +1 ms] :image_picker:platformAttrExtractor UP-TO-DATE
[  +38 ms] :image_picker:generateDebugRFile UP-TO-DATE
[        ] :video_player:platformAttrExtractor UP-TO-DATE
[        ] :video_player:generateDebugRFile UP-TO-DATE
[        ] :app:processDebugResources UP-TO-DATE
[        ] :app:generateDebugSources UP-TO-DATE
[        ] :image_picker:generateDebugBuildConfig UP-TO-DATE
[        ] :image_picker:prepareLintJar UP-TO-DATE
[        ] :image_picker:generateDebugSources UP-TO-DATE
[  +25 ms] :image_picker:javaPreCompileDebug UP-TO-DATE
[  +11 ms] :image_picker:compileDebugJavaWithJavac UP-TO-DATE
[        ] :image_picker:processDebugJavaRes NO-SOURCE
[  +14 ms] :image_picker:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE
[        ] :video_player:generateDebugBuildConfig UP-TO-DATE
[        ] :video_player:prepareLintJar UP-TO-DATE
[        ] :video_player:generateDebugSources UP-TO-DATE
[   +2 ms] :video_player:javaPreCompileDebug UP-TO-DATE
[   +6 ms] :video_player:compileDebugJavaWithJavac UP-TO-DATE
[        ] :video_player:processDebugJavaRes NO-SOURCE
[        ] :video_player:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE
[  +12 ms] :app:javaPreCompileDebug UP-TO-DATE
[  +14 ms] :app:compileDebugJavaWithJavac UP-TO-DATE
[   +1 ms] :app:compileDebugNdk NO-SOURCE
[        ] :app:compileDebugSources UP-TO-DATE
[  +67 ms] :app:transformClassesWithDexBuilderForDebug UP-TO-DATE
[  +12 ms] :app:transformDexArchiveWithExternalLibsDexMergerForDebug UP-TO-DATE
[        ] :app:transformDexArchiveWithDexMergerForDebug UP-TO-DATE
[   +9 ms] :app:mergeDebugJniLibFolders UP-TO-DATE
[        ] :image_picker:compileDebugNdk NO-SOURCE
[        ] :image_picker:mergeDebugJniLibFolders UP-TO-DATE
[        ] :image_picker:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
[  +10 ms] :image_picker:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[        ] :video_player:compileDebugNdk NO-SOURCE
[        ] :video_player:mergeDebugJniLibFolders UP-TO-DATE
[        ] :video_player:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
[        ] :video_player:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[  +11 ms] :app:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
[        ] :app:processDebugJavaRes NO-SOURCE
[  +21 ms] :app:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
[  +11 ms] :app:validateSigningDebug UP-TO-DATE
[+3474 ms] :app:packageDebug
[        ] :app:assembleDebug
[  +35 ms] :image_picker:extractDebugAnnotations UP-TO-DATE
[        ] :image_picker:mergeDebugConsumerProguardFiles UP-TO-DATE
[        ] :image_picker:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
[  +14 ms] :image_picker:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[        ] :image_picker:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[  +14 ms] :image_picker:bundleDebug UP-TO-DATE
[        ] :image_picker:compileDebugSources UP-TO-DATE
[        ] :image_picker:assembleDebug UP-TO-DATE
[        ] :video_player:extractDebugAnnotations UP-TO-DATE
[        ] :video_player:mergeDebugConsumerProguardFiles UP-TO-DATE
[  +10 ms] :video_player:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
[        ] :video_player:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[        ] :video_player:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[  +11 ms] :video_player:bundleDebug UP-TO-DATE
[   +1 ms] :video_player:compileDebugSources UP-TO-DATE
[        ] :video_player:assembleDebug UP-TO-DATE
[  +19 ms] BUILD SUCCESSFUL in 10s
[        ] 80 actionable tasks: 5 executed, 75 up-to-date
[ +472 ms] calculateSha: /Users/preritoberai/Documents/punchMob_CodeLabs/plugins/packages/image_picker/example/build/app/outputs/apk/app.apk
[ +544 ms] Built build/app/outputs/apk/debug/app-debug.apk.
[        ] /Users/preritoberai/Library/Android/sdk/build-tools/27.0.3/aapt dump xmltree build/app/outputs/apk/app.apk AndroidManifest.xml
[  +14 ms] Exit code 0 from: /Users/preritoberai/Library/Android/sdk/build-tools/27.0.3/aapt dump xmltree build/app/outputs/apk/app.apk AndroidManifest.xml
[        ] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: package=&quot;io.flutter.plugins.imagepicker.example&quot; (Raw: &quot;io.flutter.plugins.imagepicker.example&quot;)
               E: uses-sdk (line=5)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1b
               E: uses-permission (line=9)
                 A: android:name(0x01010003)=&quot;android.permission.INTERNET&quot; (Raw: &quot;android.permission.INTERNET&quot;)
               E: uses-permission (line=10)
                 A: android:name(0x01010003)=&quot;android.permission.READ_EXTERNAL_STORAGE&quot; (Raw: &quot;android.permission.READ_EXTERNAL_STORAGE&quot;)
               E: uses-permission (line=11)
                 A: android:name(0x01010003)=&quot;android.permission.WRITE_EXTERNAL_STORAGE&quot; (Raw: &quot;android.permission.WRITE_EXTERNAL_STORAGE&quot;)
               E: uses-permission (line=12)
                 A: android:name(0x01010003)=&quot;android.permission.CAMERA&quot; (Raw: &quot;android.permission.CAMERA&quot;)
               E: uses-permission (line=13)
                 A: android:name(0x01010003)=&quot;android.permission.READ_EXTERNAL_STORAGE&quot; (Raw: &quot;android.permission.READ_EXTERNAL_STORAGE&quot;)
               E: application (line=15)
                 A: android:label(0x01010001)=&quot;Image Picker Example&quot; (Raw: &quot;Image Picker Example&quot;)
                 A: android:icon(0x01010002)=@0x7f0a0000
                 A: android:name(0x01010003)=&quot;io.flutter.app.FlutterApplication&quot; (Raw: &quot;io.flutter.app.FlutterApplication&quot;)
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 E: activity (line=20)
                   A: android:theme(0x01010000)=@0x1030009
                   A: android:name(0x01010003)=&quot;io.flutter.plugins.imagepickerexample.MainActivity&quot; (Raw: &quot;io.flutter.plugins.imagepickerexample.MainActivity&quot;)
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x24b4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: intent-filter (line=27)
                     E: action (line=28)
                       A: android:name(0x01010003)=&quot;android.intent.action.MAIN&quot; (Raw: &quot;android.intent.action.MAIN&quot;)
                     E: category (line=30)
                       A: android:name(0x01010003)=&quot;android.intent.category.LAUNCHER&quot; (Raw: &quot;android.intent.category.LAUNCHER&quot;)
                 E: provider (line=34)
                   A: android:name(0x01010003)=&quot;android.support.v4.content.FileProvider&quot; (Raw: &quot;android.support.v4.content.FileProvider&quot;)
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   A: android:authorities(0x01010018)=&quot;io.flutter.plugins.imagepicker.example.flutter.image_provider&quot; (Raw: &quot;io.flutter.plugins.imagepicker.example.flutter.image_provider&quot;)
                   A: android:grantUriPermissions(0x0101001b)=(type 0x12)0xffffffff
                   E: meta-data (line=39)
                     A: android:name(0x01010003)=&quot;android.support.FILE_PROVIDER_PATHS&quot; (Raw: &quot;android.support.FILE_PROVIDER_PATHS&quot;)
                     A: android:resource(0x01010025)=@0x7f0e0000
[   +1 ms] Stopping app 'app.apk' on ONEPLUS A3000.
[        ] /Users/preritoberai/Library/Android/sdk/platform-tools/adb -s df6427c4 shell am force-stop io.flutter.plugins.imagepicker.example
[ +133 ms] /Users/preritoberai/Library/Android/sdk/platform-tools/adb -s df6427c4 shell pm list packages io.flutter.plugins.imagepicker.example
[ +614 ms] package:io.flutter.plugins.imagepicker.example
[   +3 ms] /Users/preritoberai/Library/Android/sdk/platform-tools/adb -s df6427c4 shell cat /data/local/tmp/sky.io.flutter.plugins.imagepicker.example.sha1
[  +46 ms] a7412b82aebb16e38b5bf780a6fd3757f1851c0a
[   +3 ms] Installing APK.
[   +4 ms] /Users/preritoberai/Library/Android/sdk/platform-tools/adb version
[  +27 ms] Android Debug Bridge version 1.0.39
           Version 0.0.1-4500957
           Installed as /Users/preritoberai/Library/Android/sdk/platform-tools/adb
[   +1 ms] /Users/preritoberai/Library/Android/sdk/platform-tools/adb start-server
[  +24 ms] Installing build/app/outputs/apk/app.apk...
[        ] /Users/preritoberai/Library/Android/sdk/platform-tools/adb -s df6427c4 install -t -r build/app/outputs/apk/app.apk
[+4299 ms] Success
[   +2 ms] /Users/preritoberai/Library/Android/sdk/platform-tools/adb -s df6427c4 shell echo -n 0a9fc5917d004b85c139f02a8c4c3029d53ff20a &gt; /data/local/tmp/sky.io.flutter.plugins.imagepicker.example.sha1
[  +80 ms] ONEPLUS A3000 startApp
[   +1 ms] /Users/preritoberai/Library/Android/sdk/platform-tools/adb -s df6427c4 shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true io.flutter.plugins.imagepicker.example/io.flutter.plugins.imagepickerexample.MainActivity
[ +178 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=io.flutter.plugins.imagepicker.example/io.flutter.plugins.imagepickerexample.MainActivity (has extras) }
[   +1 ms] Waiting for observatory port to be available...
[+1710 ms] Observatory URL on device: http://127.0.0.1:40633/
[   +1 ms] /Users/preritoberai/Library/Android/sdk/platform-tools/adb -s df6427c4 forward tcp:0 tcp:40633
[  +20 ms] 59577
[        ] Forwarded host port 59577 to device port 40633 for Observatory
[   +5 ms] Connecting to service protocol: http://127.0.0.1:59577/
[ +714 ms] Successfully connected to service protocol: http://127.0.0.1:59577/
[   +5 ms] getVM: {}
[  +22 ms] getIsolate: {isolateId: isolates/394812324}
[  +10 ms] _flutter.listViews: {isolateId: isolates/394812324}
[  +75 ms] DevFS: Creating new filesystem on the device (null)
[        ] _createDevFS: {fsName: example}
[ +118 ms] DevFS: Created new filesystem on the device (file:///data/user/0/io.flutter.plugins.imagepicker.example/cache/exampleSCLPRR/example/)
[   +2 ms] Updating assets
[ +133 ms] Syncing files to device ONEPLUS A3000...
[   +9 ms] DevFS: Starting sync from LocalDirectory: '/Users/preritoberai/Documents/punchMob_CodeLabs/plugins/packages/image_picker/example'
[        ] Scanning project files
[  +10 ms] Scanning package files
[ +152 ms] Scanning asset files
[   +1 ms] Scanning for deleted files
[  +17 ms] Compiling dart to kernel with 422 updated files
[   +7 ms] /Users/preritoberai/flutter/bin/cache/dart-sdk/bin/dart /Users/preritoberai/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root /Users/preritoberai/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --strong --target=flutter --initialize-from-dill=foo --output-dill build/app.dill --packages /Users/preritoberai/Documents/punchMob_CodeLabs/plugins/packages/image_picker/example/.packages --filesystem-scheme org-dartlang-root
[+10893 ms] Updating files
[+2125 ms] DevFS: Sync finished
[   +1 ms] Synced 13.8MB.
[   +5 ms] _flutter.listViews: {isolateId: isolates/394812324}
[  +16 ms] Connected to _flutterView/0x7880e10818.
[   +1 ms] 🔥  To hot reload changes while running, press &quot;r&quot;. To hot restart (and rebuild state), press &quot;R&quot;.
[   +1 ms] An Observatory debugger and profiler on ONEPLUS A3000 is available at: http://127.0.0.1:59577/
[        ] For a more detailed help message, press &quot;h&quot;. To quit, press &quot;q&quot;.
"><pre class="notranslate"><code class="notranslate">[  +12 ms] /Users/preritoberai/Library/Android/sdk/platform-tools/adb -s df6427c4 logcat -v time -t 1
[ +115 ms] Exit code 0 from: /Users/preritoberai/Library/Android/sdk/platform-tools/adb -s df6427c4 logcat -v time -t 1
[        ] --------- beginning of main
           08-16 13:45:27.352 W/MdnsDeviceScannerEntry( 8412): Invalid remote control notifications enabled status; 0
[   +5 ms] /Users/preritoberai/Library/Android/sdk/platform-tools/adb -s df6427c4 logcat -v time
[ +557 ms] DependencyChecker: /Users/preritoberai/Documents/punchMob_CodeLabs/plugins/packages/image_picker/example/lib/main.dart is newer than 2018-08-16 13:33:22.248
[   +3 ms] /Users/preritoberai/Library/Android/sdk/platform-tools/adb version
[  +25 ms] Android Debug Bridge version 1.0.39
           Version 0.0.1-4500957
           Installed as /Users/preritoberai/Library/Android/sdk/platform-tools/adb
[   +3 ms] /Users/preritoberai/Library/Android/sdk/platform-tools/adb start-server
[  +23 ms] Building APK
[  +11 ms] Running 'gradlew assembleDebug'...
[   +2 ms] [android/] /Users/preritoberai/Documents/punchMob_CodeLabs/plugins/packages/image_picker/example/android/gradlew -Pverbose=true -Ptarget=/Users/preritoberai/Documents/punchMob_CodeLabs/plugins/packages/image_picker/example/lib/main.dart -Ppreview-dart-2=true -Ptarget-platform=android-arm64 assembleDebug
[+1771 ms] :app:preBuild UP-TO-DATE
[   +2 ms] :image_picker:preBuild UP-TO-DATE
[        ] :image_picker:preDebugBuild UP-TO-DATE
[   +1 ms] :image_picker:checkDebugManifest UP-TO-DATE
[   +1 ms] :image_picker:processDebugManifest UP-TO-DATE
[        ] :video_player:preBuild UP-TO-DATE
[        ] :video_player:preDebugBuild UP-TO-DATE
[   +1 ms] :video_player:checkDebugManifest UP-TO-DATE
[   +9 ms] :video_player:processDebugManifest UP-TO-DATE
[  +94 ms] :app:preDebugBuild UP-TO-DATE
[  +21 ms] :image_picker:compileDebugAidl UP-TO-DATE
[   +1 ms] :video_player:compileDebugAidl UP-TO-DATE
[   +2 ms] :app:compileDebugAidl UP-TO-DATE
[   +6 ms] :image_picker:packageDebugRenderscript NO-SOURCE
[        ] :video_player:packageDebugRenderscript NO-SOURCE
[  +23 ms] :app:compileDebugRenderscript UP-TO-DATE
[  +54 ms] :app:flutterBuildX86Jar UP-TO-DATE
[        ] :app:checkDebugManifest UP-TO-DATE
[        ] :app:generateDebugBuildConfig UP-TO-DATE
[  +10 ms] :app:prepareLintJar UP-TO-DATE
[        ] :app:cleanMergeDebugAssets
[ +696 ms] :app:flutterBuildDebug
[        ] [  +10 ms] [/Users/preritoberai/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +44 ms] [  +52 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] [        ] origin/dev
[        ] [        ] [/Users/preritoberai/flutter/] git rev-parse --abbrev-ref HEAD
[  +10 ms] [  +11 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] [        ] dev
[        ] [   +1 ms] [/Users/preritoberai/flutter/] git ls-remote --get-url origin
[   +9 ms] [  +11 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] [        ] https://github.com/flutter/flutter.git
[        ] [        ] [/Users/preritoberai/flutter/] git log -n 1 --pretty=format:%H
[  +10 ms] [  +12 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[        ] [        ] 66091f969653fd3535b265ddcd87436901858a1d
[        ] [        ] [/Users/preritoberai/flutter/] git log -n 1 --pretty=format:%ar
[  +12 ms] [  +12 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[        ] [        ] 5 weeks ago
[        ] [   +1 ms] [/Users/preritoberai/flutter/] git describe --match v*.*.* --first-parent --long --tags
[  +30 ms] [  +30 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[        ] [        ] v0.5.7-0-g66091f969
[ +414 ms] [ +412 ms] Found plugin image_picker at /Users/preritoberai/Documents/punchMob_CodeLabs/plugins/packages/image_picker/
[  +20 ms] [  +16 ms] Found plugin video_player at /Users/preritoberai/flutter/.pub-cache/hosted/pub.dartlang.org/video_player-0.5.2/
[ +719 ms] [ +717 ms] /Users/preritoberai/flutter/bin/cache/dart-sdk/bin/dart /Users/preritoberai/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root /Users/preritoberai/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --strong --target=flutter --no-link-platform --incremental --packages /Users/preritoberai/Documents/punchMob_CodeLabs/plugins/packages/image_picker/example/.packages --output-dill build/app.dill --depfile /Users/preritoberai/Documents/punchMob_CodeLabs/plugins/packages/image_picker/example/build/app/intermediates/flutter/debug/snapshot_blob.bin.d --filesystem-scheme org-dartlang-root /Users/preritoberai/Documents/punchMob_CodeLabs/plugins/packages/image_picker/example/lib/main.dart
[+2158 ms] [+2164 ms] Building bundle
[        ] [   +1 ms] Writing asset files to /Users/preritoberai/Documents/punchMob_CodeLabs/plugins/packages/image_picker/example/build/app/intermediates/flutter/debug/flutter_assets
[  +80 ms] [  +72 ms] Wrote /Users/preritoberai/Documents/punchMob_CodeLabs/plugins/packages/image_picker/example/build/app/intermediates/flutter/debug/flutter_assets
[        ] [   +8 ms] "flutter bundle" took 3,182ms.
[ +112 ms] :app:mergeDebugShaders UP-TO-DATE
[        ] :app:compileDebugShaders UP-TO-DATE
[        ] :app:generateDebugAssets UP-TO-DATE
[        ] :image_picker:mergeDebugShaders UP-TO-DATE
[        ] :image_picker:compileDebugShaders UP-TO-DATE
[        ] :image_picker:generateDebugAssets UP-TO-DATE
[        ] :image_picker:packageDebugAssets UP-TO-DATE
[        ] :video_player:mergeDebugShaders UP-TO-DATE
[   +9 ms] :video_player:compileDebugShaders UP-TO-DATE
[        ] :video_player:generateDebugAssets UP-TO-DATE
[        ] :video_player:packageDebugAssets UP-TO-DATE
[  +10 ms] :app:mergeDebugAssets
[ +284 ms] :app:copyFlutterAssetsDebug
[        ] :app:mainApkListPersistenceDebug UP-TO-DATE
[        ] :app:generateDebugResValues UP-TO-DATE
[        ] :app:generateDebugResources UP-TO-DATE
[   +1 ms] :image_picker:compileDebugRenderscript UP-TO-DATE
[        ] :image_picker:generateDebugResValues UP-TO-DATE
[        ] :image_picker:generateDebugResources UP-TO-DATE
[   +8 ms] :image_picker:packageDebugResources UP-TO-DATE
[        ] :video_player:compileDebugRenderscript UP-TO-DATE
[        ] :video_player:generateDebugResValues UP-TO-DATE
[        ] :video_player:generateDebugResources UP-TO-DATE
[  +10 ms] :video_player:packageDebugResources UP-TO-DATE
[  +86 ms] :app:mergeDebugResources UP-TO-DATE
[        ] :app:createDebugCompatibleScreenManifests UP-TO-DATE
[  +11 ms] :app:processDebugManifest UP-TO-DATE
[        ] :app:splitsDiscoveryTaskDebug UP-TO-DATE
[   +1 ms] :image_picker:platformAttrExtractor UP-TO-DATE
[  +38 ms] :image_picker:generateDebugRFile UP-TO-DATE
[        ] :video_player:platformAttrExtractor UP-TO-DATE
[        ] :video_player:generateDebugRFile UP-TO-DATE
[        ] :app:processDebugResources UP-TO-DATE
[        ] :app:generateDebugSources UP-TO-DATE
[        ] :image_picker:generateDebugBuildConfig UP-TO-DATE
[        ] :image_picker:prepareLintJar UP-TO-DATE
[        ] :image_picker:generateDebugSources UP-TO-DATE
[  +25 ms] :image_picker:javaPreCompileDebug UP-TO-DATE
[  +11 ms] :image_picker:compileDebugJavaWithJavac UP-TO-DATE
[        ] :image_picker:processDebugJavaRes NO-SOURCE
[  +14 ms] :image_picker:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE
[        ] :video_player:generateDebugBuildConfig UP-TO-DATE
[        ] :video_player:prepareLintJar UP-TO-DATE
[        ] :video_player:generateDebugSources UP-TO-DATE
[   +2 ms] :video_player:javaPreCompileDebug UP-TO-DATE
[   +6 ms] :video_player:compileDebugJavaWithJavac UP-TO-DATE
[        ] :video_player:processDebugJavaRes NO-SOURCE
[        ] :video_player:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE
[  +12 ms] :app:javaPreCompileDebug UP-TO-DATE
[  +14 ms] :app:compileDebugJavaWithJavac UP-TO-DATE
[   +1 ms] :app:compileDebugNdk NO-SOURCE
[        ] :app:compileDebugSources UP-TO-DATE
[  +67 ms] :app:transformClassesWithDexBuilderForDebug UP-TO-DATE
[  +12 ms] :app:transformDexArchiveWithExternalLibsDexMergerForDebug UP-TO-DATE
[        ] :app:transformDexArchiveWithDexMergerForDebug UP-TO-DATE
[   +9 ms] :app:mergeDebugJniLibFolders UP-TO-DATE
[        ] :image_picker:compileDebugNdk NO-SOURCE
[        ] :image_picker:mergeDebugJniLibFolders UP-TO-DATE
[        ] :image_picker:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
[  +10 ms] :image_picker:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[        ] :video_player:compileDebugNdk NO-SOURCE
[        ] :video_player:mergeDebugJniLibFolders UP-TO-DATE
[        ] :video_player:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
[        ] :video_player:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[  +11 ms] :app:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
[        ] :app:processDebugJavaRes NO-SOURCE
[  +21 ms] :app:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
[  +11 ms] :app:validateSigningDebug UP-TO-DATE
[+3474 ms] :app:packageDebug
[        ] :app:assembleDebug
[  +35 ms] :image_picker:extractDebugAnnotations UP-TO-DATE
[        ] :image_picker:mergeDebugConsumerProguardFiles UP-TO-DATE
[        ] :image_picker:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
[  +14 ms] :image_picker:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[        ] :image_picker:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[  +14 ms] :image_picker:bundleDebug UP-TO-DATE
[        ] :image_picker:compileDebugSources UP-TO-DATE
[        ] :image_picker:assembleDebug UP-TO-DATE
[        ] :video_player:extractDebugAnnotations UP-TO-DATE
[        ] :video_player:mergeDebugConsumerProguardFiles UP-TO-DATE
[  +10 ms] :video_player:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
[        ] :video_player:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[        ] :video_player:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[  +11 ms] :video_player:bundleDebug UP-TO-DATE
[   +1 ms] :video_player:compileDebugSources UP-TO-DATE
[        ] :video_player:assembleDebug UP-TO-DATE
[  +19 ms] BUILD SUCCESSFUL in 10s
[        ] 80 actionable tasks: 5 executed, 75 up-to-date
[ +472 ms] calculateSha: /Users/preritoberai/Documents/punchMob_CodeLabs/plugins/packages/image_picker/example/build/app/outputs/apk/app.apk
[ +544 ms] Built build/app/outputs/apk/debug/app-debug.apk.
[        ] /Users/preritoberai/Library/Android/sdk/build-tools/27.0.3/aapt dump xmltree build/app/outputs/apk/app.apk AndroidManifest.xml
[  +14 ms] Exit code 0 from: /Users/preritoberai/Library/Android/sdk/build-tools/27.0.3/aapt dump xmltree build/app/outputs/apk/app.apk AndroidManifest.xml
[        ] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: package="io.flutter.plugins.imagepicker.example" (Raw: "io.flutter.plugins.imagepicker.example")
               E: uses-sdk (line=5)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1b
               E: uses-permission (line=9)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: uses-permission (line=10)
                 A: android:name(0x01010003)="android.permission.READ_EXTERNAL_STORAGE" (Raw: "android.permission.READ_EXTERNAL_STORAGE")
               E: uses-permission (line=11)
                 A: android:name(0x01010003)="android.permission.WRITE_EXTERNAL_STORAGE" (Raw: "android.permission.WRITE_EXTERNAL_STORAGE")
               E: uses-permission (line=12)
                 A: android:name(0x01010003)="android.permission.CAMERA" (Raw: "android.permission.CAMERA")
               E: uses-permission (line=13)
                 A: android:name(0x01010003)="android.permission.READ_EXTERNAL_STORAGE" (Raw: "android.permission.READ_EXTERNAL_STORAGE")
               E: application (line=15)
                 A: android:label(0x01010001)="Image Picker Example" (Raw: "Image Picker Example")
                 A: android:icon(0x01010002)=@0x7f0a0000
                 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 E: activity (line=20)
                   A: android:theme(0x01010000)=@0x1030009
                   A: android:name(0x01010003)="io.flutter.plugins.imagepickerexample.MainActivity" (Raw: "io.flutter.plugins.imagepickerexample.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x24b4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: intent-filter (line=27)
                     E: action (line=28)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=30)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: provider (line=34)
                   A: android:name(0x01010003)="android.support.v4.content.FileProvider" (Raw: "android.support.v4.content.FileProvider")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   A: android:authorities(0x01010018)="io.flutter.plugins.imagepicker.example.flutter.image_provider" (Raw: "io.flutter.plugins.imagepicker.example.flutter.image_provider")
                   A: android:grantUriPermissions(0x0101001b)=(type 0x12)0xffffffff
                   E: meta-data (line=39)
                     A: android:name(0x01010003)="android.support.FILE_PROVIDER_PATHS" (Raw: "android.support.FILE_PROVIDER_PATHS")
                     A: android:resource(0x01010025)=@0x7f0e0000
[   +1 ms] Stopping app 'app.apk' on ONEPLUS A3000.
[        ] /Users/preritoberai/Library/Android/sdk/platform-tools/adb -s df6427c4 shell am force-stop io.flutter.plugins.imagepicker.example
[ +133 ms] /Users/preritoberai/Library/Android/sdk/platform-tools/adb -s df6427c4 shell pm list packages io.flutter.plugins.imagepicker.example
[ +614 ms] package:io.flutter.plugins.imagepicker.example
[   +3 ms] /Users/preritoberai/Library/Android/sdk/platform-tools/adb -s df6427c4 shell cat /data/local/tmp/sky.io.flutter.plugins.imagepicker.example.sha1
[  +46 ms] a7412b82aebb16e38b5bf780a6fd3757f1851c0a
[   +3 ms] Installing APK.
[   +4 ms] /Users/preritoberai/Library/Android/sdk/platform-tools/adb version
[  +27 ms] Android Debug Bridge version 1.0.39
           Version 0.0.1-4500957
           Installed as /Users/preritoberai/Library/Android/sdk/platform-tools/adb
[   +1 ms] /Users/preritoberai/Library/Android/sdk/platform-tools/adb start-server
[  +24 ms] Installing build/app/outputs/apk/app.apk...
[        ] /Users/preritoberai/Library/Android/sdk/platform-tools/adb -s df6427c4 install -t -r build/app/outputs/apk/app.apk
[+4299 ms] Success
[   +2 ms] /Users/preritoberai/Library/Android/sdk/platform-tools/adb -s df6427c4 shell echo -n 0a9fc5917d004b85c139f02a8c4c3029d53ff20a &gt; /data/local/tmp/sky.io.flutter.plugins.imagepicker.example.sha1
[  +80 ms] ONEPLUS A3000 startApp
[   +1 ms] /Users/preritoberai/Library/Android/sdk/platform-tools/adb -s df6427c4 shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true io.flutter.plugins.imagepicker.example/io.flutter.plugins.imagepickerexample.MainActivity
[ +178 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=io.flutter.plugins.imagepicker.example/io.flutter.plugins.imagepickerexample.MainActivity (has extras) }
[   +1 ms] Waiting for observatory port to be available...
[+1710 ms] Observatory URL on device: http://127.0.0.1:40633/
[   +1 ms] /Users/preritoberai/Library/Android/sdk/platform-tools/adb -s df6427c4 forward tcp:0 tcp:40633
[  +20 ms] 59577
[        ] Forwarded host port 59577 to device port 40633 for Observatory
[   +5 ms] Connecting to service protocol: http://127.0.0.1:59577/
[ +714 ms] Successfully connected to service protocol: http://127.0.0.1:59577/
[   +5 ms] getVM: {}
[  +22 ms] getIsolate: {isolateId: isolates/394812324}
[  +10 ms] _flutter.listViews: {isolateId: isolates/394812324}
[  +75 ms] DevFS: Creating new filesystem on the device (null)
[        ] _createDevFS: {fsName: example}
[ +118 ms] DevFS: Created new filesystem on the device (file:///data/user/0/io.flutter.plugins.imagepicker.example/cache/exampleSCLPRR/example/)
[   +2 ms] Updating assets
[ +133 ms] Syncing files to device ONEPLUS A3000...
[   +9 ms] DevFS: Starting sync from LocalDirectory: '/Users/preritoberai/Documents/punchMob_CodeLabs/plugins/packages/image_picker/example'
[        ] Scanning project files
[  +10 ms] Scanning package files
[ +152 ms] Scanning asset files
[   +1 ms] Scanning for deleted files
[  +17 ms] Compiling dart to kernel with 422 updated files
[   +7 ms] /Users/preritoberai/flutter/bin/cache/dart-sdk/bin/dart /Users/preritoberai/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root /Users/preritoberai/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --strong --target=flutter --initialize-from-dill=foo --output-dill build/app.dill --packages /Users/preritoberai/Documents/punchMob_CodeLabs/plugins/packages/image_picker/example/.packages --filesystem-scheme org-dartlang-root
[+10893 ms] Updating files
[+2125 ms] DevFS: Sync finished
[   +1 ms] Synced 13.8MB.
[   +5 ms] _flutter.listViews: {isolateId: isolates/394812324}
[  +16 ms] Connected to _flutterView/0x7880e10818.
[   +1 ms] 🔥  To hot reload changes while running, press "r". To hot restart (and rebuild state), press "R".
[   +1 ms] An Observatory debugger and profiler on ONEPLUS A3000 is available at: http://127.0.0.1:59577/
[        ] For a more detailed help message, press "h". To quit, press "q".

</code></pre></div>
<h2 dir="auto">Flutter Analyze</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="DEN-L-061:example preritoberai$ flutter analyze
Analyzing example...                                             
No issues found! (ran in 4.3s)
DEN-L-061:example preritoberai$ 
"><pre class="notranslate"><code class="notranslate">DEN-L-061:example preritoberai$ flutter analyze
Analyzing example...                                             
No issues found! (ran in 4.3s)
DEN-L-061:example preritoberai$ 

</code></pre></div>
<h2 dir="auto">Flutter Doctor</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="DEN-L-061:example preritoberai$ flutter doctor -v
[✓] Flutter (Channel dev, v0.5.7, on Mac OS X 10.13.4 17E202, locale en-US)
    • Flutter version 0.5.7 at /Users/preritoberai/flutter
    • Framework revision 66091f9696 (5 weeks ago), 2018-07-09 12:52:41 -0700
    • Engine revision 6fe748490d
    • Dart version 2.0.0-dev.63.0.flutter-4c9689c1d2

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at /Users/preritoberai/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.3
    • 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.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 9.3.1, Build version 9E501
    • ios-deploy 1.9.2
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 24.2.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] Connected devices (1 available)
    • ONEPLUS A3000 • df6427c4 • android-arm64 • Android 8.0.0 (API 26)

• No issues found!
"><pre class="notranslate"><code class="notranslate">DEN-L-061:example preritoberai$ flutter doctor -v
[✓] Flutter (Channel dev, v0.5.7, on Mac OS X 10.13.4 17E202, locale en-US)
    • Flutter version 0.5.7 at /Users/preritoberai/flutter
    • Framework revision 66091f9696 (5 weeks ago), 2018-07-09 12:52:41 -0700
    • Engine revision 6fe748490d
    • Dart version 2.0.0-dev.63.0.flutter-4c9689c1d2

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at /Users/preritoberai/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.3
    • 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.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 9.3.1, Build version 9E501
    • ios-deploy 1.9.2
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 24.2.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] Connected devices (1 available)
    • ONEPLUS A3000 • df6427c4 • android-arm64 • Android 8.0.0 (API 26)

• No issues found!

</code></pre></div>
<p dir="auto">I'm writing application using Firebase.<br>
I want to show dialog when user enter the duplicated email in signup form.<br>
There are many exception so I want to catch FirebaseAuthUserCollisionException.<br>
But, I can't find anywhere, how can I use it?</p>