From 44fa4460fd3b0e59f69bc079ec85aeb7ae20d289 Mon Sep 17 00:00:00 2001 From: Vadim Date: Tue, 16 May 2023 09:42:48 +0200 Subject: [PATCH] lints --- lib/screens/metering/bloc_metering.dart | 48 +++++++++++-------- .../bloc_container_camera.dart | 2 +- .../widget_list_tile_write_email.dart | 1 - 3 files changed, 28 insertions(+), 23 deletions(-) diff --git a/lib/screens/metering/bloc_metering.dart b/lib/screens/metering/bloc_metering.dart index bead774..1b52882 100644 --- a/lib/screens/metering/bloc_metering.dart +++ b/lib/screens/metering/bloc_metering.dart @@ -132,11 +132,13 @@ class MeteringBloc extends Bloc { _meteringInteractor.quickVibration(); _communicationBloc.add(const communication_events.MeasureEvent()); _isMeteringInProgress = true; - emit(LoadingState( - film: _film, - iso: _iso, - nd: _nd, - )); + emit( + LoadingState( + film: _film, + iso: _iso, + nd: _nd, + ), + ); } void _updateMeasurements() => _handleEv100(_ev100); @@ -153,27 +155,31 @@ class MeteringBloc extends Bloc { _meteringInteractor.responseVibration(); _ev100 = event.ev100; final ev = event.ev100 + log2(_iso.value / 100) - _nd.stopReduction; - emit(MeteringDataState( - ev: ev, - film: _film, - iso: _iso, - nd: _nd, - exposurePairs: _buildExposureValues(ev), - continuousMetering: _isMeteringInProgress, - )); + emit( + MeteringDataState( + ev: ev, + film: _film, + iso: _iso, + nd: _nd, + exposurePairs: _buildExposureValues(ev), + continuousMetering: _isMeteringInProgress, + ), + ); } void _onMeasureError(MeasureErrorEvent _, Emitter emit) { _meteringInteractor.errorVibration(); _ev100 = null; - emit(MeteringDataState( - ev: null, - film: _film, - iso: _iso, - nd: _nd, - exposurePairs: const [], - continuousMetering: _isMeteringInProgress, - )); + emit( + MeteringDataState( + ev: null, + film: _film, + iso: _iso, + nd: _nd, + exposurePairs: const [], + continuousMetering: _isMeteringInProgress, + ), + ); } List _buildExposureValues(double ev) { diff --git a/lib/screens/metering/components/camera_container/bloc_container_camera.dart b/lib/screens/metering/components/camera_container/bloc_container_camera.dart index d1e79fa..0d5fb63 100644 --- a/lib/screens/metering/components/camera_container/bloc_container_camera.dart +++ b/lib/screens/metering/components/camera_container/bloc_container_camera.dart @@ -193,7 +193,7 @@ class CameraContainerBloc extends EvSourceBlocBase