mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-25 08:50:40 +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();
|
||
|
}
|