feat: preview media in modal

closes #38
This commit is contained in:
2025-05-28 12:17:44 +01:00
parent 2ec17c6c41
commit c6168ec094
7 changed files with 77 additions and 19 deletions

View File

@ -9,6 +9,7 @@ class VideoPlayerWidget extends StatefulWidget {
final String? placeholder;
final double? aspectRatio;
final bool? autoPlay;
final bool? isLive;
const VideoPlayerWidget({
super.key,
@ -16,6 +17,7 @@ class VideoPlayerWidget extends StatefulWidget {
this.placeholder,
this.aspectRatio,
this.autoPlay,
this.isLive,
});
@override
@ -38,6 +40,7 @@ class _VideoPlayerWidget extends State<VideoPlayerWidget> {
videoPlayerController: _controller,
autoPlay: widget.autoPlay ?? true,
aspectRatio: widget.aspectRatio,
isLive: widget.isLive ?? false,
autoInitialize: true,
placeholder:
(widget.placeholder?.isNotEmpty ?? false)