mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-14 02:37:20 +02:00
feat: Add LitePlayerView widget for IPTV stream playback with integrated zapping controls and error handling.
This commit is contained in:
1 parent
18d2e0a0ee
commit
23c634ddb7
3 files changed
+49
-5
No files matched your search
@@ -55,7 +55,7 @@ class _LitePlayerViewState extends ConsumerState<LitePlayerView> {
|
||||
looping: false,
|
||||
isLive: widget.isLive,
|
||||
aspectRatio: _videoController.value.aspectRatio > 0 ? _videoController.value.aspectRatio : 16/9,
|
||||
colors: ChewieProgressColors(
|
||||
materialProgressColors: ChewieProgressColors(
|
||||
playedColor: AppColors.primary,
|
||||
handleColor: Colors.white,
|
||||
backgroundColor: Colors.white24,
|
||||
@@ -67,13 +67,19 @@ class _LitePlayerViewState extends ConsumerState<LitePlayerView> {
|
||||
return <OptionItem>[
|
||||
if (widget.onNext != null)
|
||||
OptionItem(
|
||||
onTap: widget.onNext!,
|
||||
onTap: (context) {
|
||||
widget.onNext!();
|
||||
Navigator.of(context).pop(); // Close options menu
|
||||
},
|
||||
iconData: Icons.skip_next,
|
||||
title: 'Next Channel',
|
||||
),
|
||||
if (widget.onPrevious != null)
|
||||
OptionItem(
|
||||
onTap: widget.onPrevious!,
|
||||
onTap: (context) {
|
||||
widget.onPrevious!();
|
||||
Navigator.of(context).pop(); // Close options menu
|
||||
},
|
||||
iconData: Icons.skip_previous,
|
||||
title: 'Previous Channel',
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user