Issue 1:
We're about to turn on auto-link checking for the website, but we noticed there are a few links that 404:

- _site/animations/index.html
* External link https://docs.flutter.io/flutter/physics/ScrollSimulation-class.html failed: 404 No error
- _site/assets-and-images/index.html
* External link https://docs.flutter.io/flutter/services/ImageResource-class.html failed: 404 No error
* External link https://docs.flutter.io/flutter/widgets/AssetVendor-class.html failed: 404 No error
* External link https://github.com/flutter/flutter/tree/master/examples/widgets failed: 404 No error
- _site/debugging/index.html
* External link https://docs.flutter.io/flutter/material/InkFeatures-class.html failed: 404 No error
* External link https://docs.flutter.io/flutter/rendering/RenderObject/debugDescribeSettings.html failed: 404 No error
* External link https://docs.flutter.io/flutter/scheduler/Scheduler/addPersistentFrameCallback.html failed: 404 No error
- _site/platform-services/index.html
* External link https://docs.flutter.io/flutter/services/MojoShell-class.html failed: 404 No error
* External link https://github.com/flutter/engine/blob/master/sky/shell/platform/android/io/flutter/view/FlutterView.java failed: 404 No error
* External link https://github.com/flutter/engine/blob/master/sky/shell/platform/ios/framework/Headers/FlutterAsyncMessageListener.h failed: 404 No error
* External link https://github.com/flutter/engine/blob/master/sky/shell/platform/ios/framework/Headers/FlutterMessageListener.h failed: 404 No error
* External link https://github.com/flutter/engine/blob/master/sky/shell/platform/ios/framework/Headers/FlutterViewController.h failed: 404 No error
* External link https://github.com/flutter/flutter/blob/master/examples/hello_services/ios/HelloServices/AppDelegate.m failed: 404 No error
* External link https://github.com/flutter/flutter/blob/master/examples/hello_services/ios/HelloServices/LocationProvider.m failed: 404 No error
* External link https://github.com/flutter/flutter/tree/master/examples/hello_services/ios/HelloServices failed: 404 No error
- _site/rendering/index.html
* internally linking to ../../example/rendering/sector_layout.dart, which does not exist (line 577)
<a href="../../example/rendering/sector_layout.dart">sector_layout.dart
example</a>
- _site/text-input/index.html
* External link https://docs.flutter.io/flutter/widgets/RawInputLine-class.html failed: 404 No error
- _site/widgets-intro/index.html
* External link https://docs.flutter.io/flutter/material/InputState-class.html failed: 404 No error
htmlproofer 3.4.0 | Error: HTML-Proofer found 18 failures!

Once we fix these, we can turn on link checking and never have a broken link again [1]

[1] results may vary

Issue 2:
App crashes when users gives permission to access the gallery for the very first time with error message showing

07-20 12:41:37.841 4132-4132/com.----.--- E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.----.-----, PID: 4132
java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Surface android.media.ImageReader.getSurface()' on a null object reference
at io.flutter.plugins.camera.CameraPlugin$Camera.startPreview(CameraPlugin.java:676)
at io.flutter.plugins.camera.CameraPlugin$Camera.access$2000(CameraPlugin.java:243)
at io.flutter.plugins.camera.CameraPlugin$Camera$3.onOpened(CameraPlugin.java:443)
at android.hardware.camera2.impl.CameraDeviceImpl$1.run(CameraDeviceImpl.java:139)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)

Version:

Flutter 0.5.1

camera: "^0.2.1"

image_picker: "^0.4.5"

Steps To Reproduce,

Create a Stack view with CameraPreview with 2 button to capture and open gallery

Click on open gallery button (At first time it asks for permission click allow -> CRASHED)

open gallery by using final File galleryImagePath = await ImagePicker.pickImage(source:ImageSource.gallery);

sample code to Reproduce CameraView - sample code