mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 23:40:41 +00:00
24 lines
451 B
Dart
24 lines
451 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 CameraReadyState extends CameraState {
|
||
|
final CameraController controller;
|
||
|
|
||
|
const CameraReadyState(this.controller);
|
||
|
}
|
||
|
|
||
|
class CameraErrorState extends CameraState {
|
||
|
const CameraErrorState();
|
||
|
}
|