ML-7 Exposure offset doesn't apply on app reopen (#9)

This commit is contained in:
Vadim 2023-01-22 22:40:44 +03:00 committed by GitHub
parent 9477f80ada
commit 703b29a3d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -42,6 +42,8 @@ class Application extends StatelessWidget {
return AnnotatedRegion(
value: SystemUiOverlayStyle(
statusBarColor: Colors.transparent,
statusBarBrightness:
systemIconsBrightness == Brightness.light ? Brightness.dark : Brightness.light,
statusBarIconBrightness: systemIconsBrightness,
systemNavigationBarColor: context.watch<ThemeData>().colorScheme.surface,
systemNavigationBarIconBrightness: systemIconsBrightness,

View file

@ -96,6 +96,7 @@ class CameraBloc extends EvSourceBloc<CameraEvent, CameraState> {
await _cameraController!.getExposureOffsetStepSize().then((value) {
_exposureStep = value == 0 ? 0.1 : value;
});
_currentExposureOffset = 0.0;
emit(CameraInitializedState(_cameraController!));