feat: Add mobile tabs for displaying and searching IPTV movies and series.

This commit is contained in:
Michael committed 2025-12-08 23:24:19 +01:00
1 parent e586972d22
commit d4078f58dc
2 files changed
+4 -8

No files matched your search

@@ -94,12 +94,10 @@ class _MobileMoviesTabState extends ConsumerState<MobileMoviesTab> {
}
Future<void> _loadMoreMovies() async {
// Double-check conditions to prevent race conditions
// Prevent race conditions
if (_isLoading || !_hasMore || !mounted) return;
// Set loading flag immediately before any async operation
_isLoading = true;
if (mounted) setState(() {});
setState(() => _isLoading = true);
try {
final service = ref.read(xtreamServiceProvider(widget.playlist));
@@ -93,12 +93,10 @@ class _MobileSeriesTabState extends ConsumerState<MobileSeriesTab> {
}
Future<void> _loadMoreSeries() async {
// Double-check conditions to prevent race conditions
// Prevent race conditions
if (_isLoading || !_hasMore || !mounted) return;
// Set loading flag immediately before any async operation
_isLoading = true;
if (mounted) setState(() {});
setState(() => _isLoading = true);
try {
final service = ref.read(xtreamServiceProvider(widget.playlist));