Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Indentation changes

ashilkn044e82b96fcc
diff --git a/lib/services/favorites_service.dart b/lib/services/favorites_service.dart
index 47d0e06252..976847ae33 100644
--- a/lib/services/favorites_service.dart
+++ b/lib/services/favorites_service.dart
@@ -105,8 +105,10 @@ class FavoritesService {
);
}
- void _updateFavoriteFilesCache(List<EnteFile> files,
- {required bool favFlag}) {
+ void _updateFavoriteFilesCache(
+ List<EnteFile> files, {
+ required bool favFlag,
+ }) {
final Set<int> updatedIDs = {};
final Set<String> localIDs = {};
for (var file in files) {
diff --git a/lib/ui/viewer/file/video_widget.dart b/lib/ui/viewer/file/video_widget.dart
index 806e4dc63d..48907dc009 100644
--- a/lib/ui/viewer/file/video_widget.dart
+++ b/lib/ui/viewer/file/video_widget.dart
@@ -92,7 +92,7 @@ class _VideoWidgetState extends State<VideoWidget> {
getFileFromServer(
widget.file,
progressCallback: (count, total) {
- if(!mounted) {
+ if (!mounted) {
return;
}
_progressNotifier.value = count / (widget.file.fileSize ?? total);
@@ -107,9 +107,12 @@ class _VideoWidgetState extends State<VideoWidget> {
_setVideoPlayerController(file: file);
}
}).onError((error, stackTrace) {
- if(mounted) {
- showErrorDialog(context, "Error", S
- .of(context).failedToDownloadVideo,);
+ if (mounted) {
+ showErrorDialog(
+ context,
+ "Error",
+ S.of(context).failedToDownloadVideo,
+ );
}
});
}
@@ -273,7 +276,8 @@ class _VideoWidgetState extends State<VideoWidget> {
_chewieController = ChewieController(
videoPlayerController: _videoPlayerController!,
aspectRatio: _videoPlayerController!.value.aspectRatio,
- autoPlay: widget.autoPlay!,
+ // autoPlay: widget.autoPlay!,
+ autoPlay: true,
autoInitialize: true,
looping: true,
allowMuting: true,