mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 15:30:59 +00:00
await dispose
This commit is contained in:
parent
205255b916
commit
c50baa4802
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ class CameraContainerBloc extends EvSourceBlocBase<CameraContainerEvent, CameraC
|
||||||
|
|
||||||
Future<void> _onDeinitialize(DeinitializeEvent _, Emitter emit) async {
|
Future<void> _onDeinitialize(DeinitializeEvent _, Emitter emit) async {
|
||||||
emit(const CameraLoadingState());
|
emit(const CameraLoadingState());
|
||||||
unawaited(_cameraController?.dispose().then((_) => _cameraController = null));
|
await _cameraController?.dispose().then((_) => _cameraController = null);
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _onZoomChanged(ZoomChangedEvent event, Emitter emit) async {
|
Future<void> _onZoomChanged(ZoomChangedEvent event, Emitter emit) async {
|
||||||
|
|
Loading…
Reference in a new issue