Browse Source

[camera] Remove debug and commits

camera
Vitaliy Zarubin 1 year ago
parent
commit
5e1013b156
  1. 1
      packages/camera/camera_aurora/lib/camera_aurora.dart
  2. 3
      packages/camera/camera_aurora/lib/camera_aurora_method_channel.dart
  3. 4
      packages/camera/camera_aurora/lib/camera_viewfinder.dart

1
packages/camera/camera_aurora/lib/camera_aurora.dart

@ -60,7 +60,6 @@ class CameraAurora extends CameraPlatform {
Future<void> resumeVideoRecording(int cameraId) => Future<void> resumeVideoRecording(int cameraId) =>
CameraAuroraPlatform.instance.resumeVideoRecording(cameraId); CameraAuroraPlatform.instance.resumeVideoRecording(cameraId);
/// The camera has been initialized.
@override @override
Stream<CameraInitializedEvent> onCameraInitialized(int cameraId) async* { Stream<CameraInitializedEvent> onCameraInitialized(int cameraId) async* {
yield CameraInitializedEvent( yield CameraInitializedEvent(

3
packages/camera/camera_aurora/lib/camera_aurora_method_channel.dart

@ -41,7 +41,6 @@ class MethodChannelCameraAurora extends CameraAuroraPlatform {
} }
} }
/// Camera
@override @override
Future<List<CameraDescription>> availableCameras() async { Future<List<CameraDescription>> availableCameras() async {
final List<CameraDescription> result = []; final List<CameraDescription> result = [];
@ -100,7 +99,6 @@ class MethodChannelCameraAurora extends CameraAuroraPlatform {
.invokeMethod<Object?>(CameraAuroraMethods.dispose.name); .invokeMethod<Object?>(CameraAuroraMethods.dispose.name);
} }
/// Make Photo
@override @override
Future<XFile> takePicture(int cameraId) async { Future<XFile> takePicture(int cameraId) async {
final image = await methodsChannel.invokeMethod<String?>( final image = await methodsChannel.invokeMethod<String?>(
@ -116,7 +114,6 @@ class MethodChannelCameraAurora extends CameraAuroraPlatform {
); );
} }
// Record Video
@override @override
Future<void> startVideoRecording(int cameraId, Future<void> startVideoRecording(int cameraId,
{Duration? maxVideoDuration}) async { {Duration? maxVideoDuration}) async {

4
packages/camera/camera_aurora/lib/camera_viewfinder.dart

@ -29,7 +29,6 @@ class _CameraViewfinderState extends State<CameraViewfinder> {
CameraAuroraPlatform.instance.onChangeState().listen((event) { CameraAuroraPlatform.instance.onChangeState().listen((event) {
if (mounted) { if (mounted) {
setState(() { setState(() {
debugPrint(_cameraState.toString());
_cameraState = event; _cameraState = event;
}); });
} }
@ -72,9 +71,6 @@ class _CameraViewfinderState extends State<CameraViewfinder> {
double height = 10; double height = 10;
double width = 10; double width = 10;
// widget.width = widget.height
// _cameraState.height = _cameraState.width
if (_cameraState.height != 0 && _cameraState.width != 0) { if (_cameraState.height != 0 && _cameraState.width != 0) {
if (_cameraState.rotationDisplay == 90 || if (_cameraState.rotationDisplay == 90 ||
_cameraState.rotationDisplay == 270) { _cameraState.rotationDisplay == 270) {

Loading…
Cancel
Save