Issue 1:
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.

Steps to Reproduce

Open the demo image_picker application

Modify the example to the following code to include the text field and focus node elements:

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() => new _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
Future<File> _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 && 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(() =>
print('focusNode updated: hasFocus: ${messageFocusNode.hasFocus}'));
}

void _onFocusChange() {
debugPrint("Focus: " + 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<File>(
future: _imageFile,
builder: (BuildContext context, AsyncSnapshot<File> snapshot) {
if (snapshot.connectionState == ConnectionState.done &&
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: <Widget>[
Expanded(
child: isVideo ? _previewVideo(_controller) : _previewImage(),
),
Expanded(
child: new TextField(
keyboardType: TextInputType.multiline,
maxLines: 1000,
focusNode: messageFocusNode,
))
],
),
),
floatingActionButton: Column(
mainAxisAlignment: MainAxisAlignment.end,
children: <Widget>[
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() => new AspectRatioVideoState();
}

class AspectRatioVideoState extends State<AspectRatioVideo> {
VideoPlayerController get controller => 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();
}
}
}

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.

Logs

[ +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 > /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".

Flutter Analyze

DEN-L-061:example preritoberai$ flutter analyze
Analyzing example...
No issues found! (ran in 4.3s)
DEN-L-061:example preritoberai$

Flutter Doctor

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!

Issue 2:
I'm writing application using Firebase.

I want to show dialog when user enter the duplicated email in signup form.

There are many exception so I want to catch FirebaseAuthUserCollisionException.

But, I can't find anywhere, how can I use it?