Repository: flutter
Issue: [camera] Blank screen when switching  between front and back cameras 
Labels: platform-android,platform-ios,p: camera,package,team-ecosystem,has reproducible steps,P2,found in release: 2.0,found in release: 2.2,found in release: 2.3,found in release: 2.6,triaged-ecosystem

Code: #81816
BUG:
After Fast and many times changing camera from front to back, the black screen apears

https://user-images.githubusercontent.com/45257709/117115544-ad622980-ada6-11eb-9f4b-ecb6a55f458c.mp4


<details> 
<summary>logs</summary> 
	
```console
I/flutter (26583): [A CameraController was used after being disposed.
I/flutter (26583): Once you have called dispose() on a CameraController, it can no longer be used., #0      ChangeNotifier._debugAssertNotDisposed.<anonymous closure> (package:flutter/src/foundation/change_notifier.dart:117:9)
I/flutter (26583): #1      ChangeNotifier._debugAssertNotDisposed (package:flutter/src/foundation/change_notifier.dart:123:6)
I/flutter (26583): #2      ChangeNotifier.notifyListeners (package:flutter/src/foundation/change_notifier.dart:234:12)
I/flutter (26583): #3      ValueNotifier.value= (package:flutter/src/foundation/change_notifier.dart:309:5)
I/flutter (26583): #4      CameraController.initialize (package:camera/src/camera_controller.dart:290:7)
I/flutter (26583): <asynchronous suspension>
I/flutter (26583): #5      _AppCameraState.onNewCameraSelected (package:yool/app/presentation/page/camera/app_camera.dart:131:7)
I/flutter (26583): <asynchronous suspension>
I/flutter (26583): ]
I/ViewRootImpl@7622ea3[MainActivity](26583): ViewPostIme pointer 0
I/ViewRootImpl@7622ea3[MainActivity](26583): ViewPostIme pointer 1
I/CameraManagerGlobal(26583): Camera 1 facing CAMERA_FACING_FRONT state now CAMERA_STATE_CLOSED for client uz.yim.yool API Level 2
D/SensorManager(26583): unregisterListener ::   
I/Camera  (26583): [FPS Range Available] is:[15, 15]
I/Camera  (26583): [FPS Range Available] is:[15, 20]
I/Camera  (26583): [FPS Range Available] is:[20, 20]
I/Camera  (26583): [FPS Range Available] is:[10, 24]
I/Camera  (26583): [FPS Range Available] is:[15, 24]
I/Camera  (26583): [FPS Range Available] is:[24, 24]
I/Camera  (26583): [FPS Range Available] is:[7, 30]
I/Camera  (26583): [FPS Range Available] is:[10, 30]
I/Camera  (26583): [FPS Range Available] is:[15, 30]
I/Camera  (26583): [FPS Range Available] is:[30, 30]
I/Camera  (26583): [FPS Range] is:[7, 30]
D/SensorManager(26583): registerListener :: 1, LSM6DSL Acceleration Sensor, 200000, 0,  
I/CameraManagerGlobal(26583): Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_OPEN for client uz.yim.yool API Level 2
I/CameraManagerGlobal(26583): Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_ACTIVE for client uz.yim.yool API Level 2
W/System  (26583): A resource failed to call release. 
I/chatty  (26583): uid=11124(uz.yim.yool) FinalizerDaemon identical 8 lines
W/System  (26583): A resource failed to call release. 
I/ViewRootImpl@7622ea3[MainActivity](26583): MSG_WINDOW_FOCUS_CHANGED 0 1
D/InputMethodManager(26583): prepareNavigationBarInfo() DecorView@1865321[MainActivity]
D/InputMethodManager(26583): getNavigationBarColor() -855310
I/ViewRootImpl@7622ea3[MainActivity](26583): MSG_WINDOW_FOCUS_CHANGED 1 1
D/InputMethodManager(26583): prepareNavigationBarInfo() DecorView@1865321[MainActivity]
D/InputMethodManager(26583): getNavigationBarColor() -855310
I/ViewRootImpl@7622ea3[MainActivity](26583): ViewPostIme pointer 0
I/SurfaceView(26583): onWindowVisibilityChanged(8) false io.flutter.embedding.android.FlutterSurfaceView{4554559 V.E...... ........ 0,0-720,1450} of ViewRootImpl@7622ea3[MainActivity]
I/SurfaceView(26583): surfaceDestroyed callback.size 1 #2 io.flutter.embedding.android.FlutterSurfaceView{4554559 V.E...... ........ 0,0-720,1450}
I/mali_egl(26583): eglDestroySurface() in
I/mali_winsys(26583): delete_surface() [720x1450] return
I/mali_egl(26583): eglDestroySurface() out
W/libEGL  (26583): EGLNativeWindowType 0x7187faa010 disconnect failed
I/SurfaceView(26583): remove() io.flutter.embedding.android.FlutterSurfaceView{4554559 V.E...... ........ 0,0-720,1450} Surface(name=SurfaceView - uz.yim.yool/uz.yim.yool.MainActivity@4554559@0)/@0x7547ffc
I/mali_egl(26583): eglDestroySurface() in
I/mali_winsys(26583): delete_surface() [720x1480] return
I/mali_egl(26583): eglDestroySurface() out
W/libEGL  (26583): EGLNativeWindowType 0x71869dc550 disconnect failed
I/ViewRootImpl@7622ea3[MainActivity](26583): Relayout returned: old=(0,0,720,1480) new=(0,0,720,1480) req=(720,1480)8 dur=27 res=0x5 s={false 0} ch=true
I/CameraManagerGlobal(26583): Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_IDLE for client uz.yim.yool API Level 2
I/CameraManagerGlobal(26583): Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_CLOSED for client uz.yim.yool API Level 2
D/SensorManager(26583): unregisterListener ::   
I/ViewRootImpl@7622ea3[MainActivity](26583): stopped(true) old=false
I/SurfaceView(26583): windowStopped(true) false io.flutter.embedding.android.FlutterSurfaceView{4554559 V.E...... ........ 0,0-720,1450} of ViewRootImpl@7622ea3[MainActivity]
I/ViewRootImpl@7622ea3[MainActivity](26583): MSG_WINDOW_FOCUS_CHANGED 0 1
D/InputMethodManager(26583): prepareNavigationBarInfo() DecorView@1865321[MainActivity]
D/InputMethodManager(26583): getNavigationBarColor() -855310
D/InputTransport(26583): Input channel destroyed: 'ClientS', fd=103
W/System  (26583): A resource failed to call release. 
W/System  (26583): A resource failed to call release. 
W/System  (26583): A resource failed to call release. 
W/System  (26583): A resource failed to call release. 
W/System  (26583): A resource failed to call release. 
W/System  (26583): A resource failed to call release. 
W/System  (26583): A resource failed to call release. 
```

</details>