added a swipeable media gallery for chat and folder images and videos with server previews, on-demand originals and zoom, and marked document previews in chat so they no longer pass for photos

This commit is contained in:
MineTec committed 2026-10-28 22:15:57 +01:00
1 parent 952f916231
commit aa176c90e3
22 files changed
+1658 -103

No files matched your search

+3 -1
View File
@@ -13,11 +13,13 @@ class MediaPlayer extends StatefulWidget {
final String path;
final bool isAudio;
final String? filename;
final bool autoPlay;
const MediaPlayer({
super.key,
required this.path,
required this.isAudio,
this.filename,
this.autoPlay = false,
});
@override
@@ -57,7 +59,7 @@ class _MediaPlayerState extends State<MediaPlayer> {
_video = controller;
_chewie = ChewieController(
videoPlayerController: controller,
autoPlay: false,
autoPlay: widget.autoPlay,
looping: false,
allowFullScreen: true,
allowPlaybackSpeedChanging: true,