|
@@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
|
|
import 'package:logging/logging.dart';
|
|
import 'package:logging/logging.dart';
|
|
import 'package:photos/models/file/file.dart';
|
|
import 'package:photos/models/file/file.dart';
|
|
import 'package:photos/models/file/file_type.dart';
|
|
import 'package:photos/models/file/file_type.dart';
|
|
-import "package:photos/ui/viewer/file/video_widget_new.dart";
|
|
|
|
|
|
+import "package:photos/ui/viewer/file/video_widget.dart";
|
|
import "package:photos/ui/viewer/file/zoomable_live_image_new.dart";
|
|
import "package:photos/ui/viewer/file/zoomable_live_image_new.dart";
|
|
|
|
|
|
class FileWidget extends StatelessWidget {
|
|
class FileWidget extends StatelessWidget {
|
|
@@ -38,16 +38,16 @@ class FileWidget extends StatelessWidget {
|
|
key: key ?? ValueKey(fileKey),
|
|
key: key ?? ValueKey(fileKey),
|
|
);
|
|
);
|
|
} else if (file.fileType == FileType.video) {
|
|
} else if (file.fileType == FileType.video) {
|
|
- // return VideoWidget(
|
|
|
|
- // file,
|
|
|
|
- // autoPlay: autoPlay ?? false, // Autoplay if it was opened directly
|
|
|
|
- // tagPrefix: tagPrefix,
|
|
|
|
- // playbackCallback: playbackCallback,
|
|
|
|
- // );
|
|
|
|
- return VideoWidgetNew(
|
|
|
|
|
|
+ return VideoWidget(
|
|
file,
|
|
file,
|
|
|
|
+ autoPlay: autoPlay ?? false, // Autoplay if it was opened directly
|
|
tagPrefix: tagPrefix,
|
|
tagPrefix: tagPrefix,
|
|
|
|
+ playbackCallback: playbackCallback,
|
|
);
|
|
);
|
|
|
|
+ // return VideoWidgetNew(
|
|
|
|
+ // file,
|
|
|
|
+ // tagPrefix: tagPrefix,
|
|
|
|
+ // );
|
|
} else {
|
|
} else {
|
|
Logger('FileWidget').severe('unsupported file type ${file.fileType}');
|
|
Logger('FileWidget').severe('unsupported file type ${file.fileType}');
|
|
return const Icon(Icons.error);
|
|
return const Icon(Icons.error);
|