mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-24 08:20:40 +00:00
abd07764fd
added `ZoomSlider` (wip) wip implemented horizontal slider implemented vertical slider integrated 2 sliders to metering screen (wip) removed filled track placed camera slider in the proper folder temp fix for exposure list fonts update exposure event added ruler to `CameraExposureSlider` moved slider sizes to dimens moved `CameraZoomSlider` to the separate folder
43 lines
1,003 B
Dart
43 lines
1,003 B
Dart
import 'package:camera/camera.dart';
|
|
|
|
abstract class CameraState {
|
|
const CameraState();
|
|
}
|
|
|
|
class CameraInitState extends CameraState {
|
|
const CameraInitState();
|
|
}
|
|
|
|
class CameraLoadingState extends CameraState {
|
|
const CameraLoadingState();
|
|
}
|
|
|
|
class CameraInitializedState extends CameraState {
|
|
final CameraController controller;
|
|
|
|
const CameraInitializedState(this.controller);
|
|
}
|
|
|
|
class CameraActiveState extends CameraState {
|
|
final double minZoom;
|
|
final double maxZoom;
|
|
final double currentZoom;
|
|
final double minExposureOffset;
|
|
final double maxExposureOffset;
|
|
final double? exposureOffsetStep;
|
|
final double currentExposureOffset;
|
|
|
|
const CameraActiveState({
|
|
required this.minZoom,
|
|
required this.maxZoom,
|
|
required this.currentZoom,
|
|
required this.minExposureOffset,
|
|
required this.maxExposureOffset,
|
|
required this.exposureOffsetStep,
|
|
required this.currentExposureOffset,
|
|
});
|
|
}
|
|
|
|
class CameraErrorState extends CameraState {
|
|
const CameraErrorState();
|
|
}
|