mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-19 21:18:06 +02:00
feat: Add mobile tabs for displaying and searching IPTV movies and series.
This commit is contained in:
1 parent
5a594bc70f
commit
92c184ba46
2 files changed
+4
-8
No files matched your search
@@ -94,12 +94,10 @@ class _MobileMoviesTabState extends ConsumerState<MobileMoviesTab> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _loadMoreMovies() async {
|
Future<void> _loadMoreMovies() async {
|
||||||
// Double-check conditions to prevent race conditions
|
// Prevent race conditions
|
||||||
if (_isLoading || !_hasMore || !mounted) return;
|
if (_isLoading || !_hasMore || !mounted) return;
|
||||||
|
|
||||||
// Set loading flag immediately before any async operation
|
setState(() => _isLoading = true);
|
||||||
_isLoading = true;
|
|
||||||
if (mounted) setState(() {});
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final service = ref.read(xtreamServiceProvider(widget.playlist));
|
final service = ref.read(xtreamServiceProvider(widget.playlist));
|
||||||
|
|||||||
@@ -93,12 +93,10 @@ class _MobileSeriesTabState extends ConsumerState<MobileSeriesTab> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _loadMoreSeries() async {
|
Future<void> _loadMoreSeries() async {
|
||||||
// Double-check conditions to prevent race conditions
|
// Prevent race conditions
|
||||||
if (_isLoading || !_hasMore || !mounted) return;
|
if (_isLoading || !_hasMore || !mounted) return;
|
||||||
|
|
||||||
// Set loading flag immediately before any async operation
|
setState(() => _isLoading = true);
|
||||||
_isLoading = true;
|
|
||||||
if (mounted) setState(() {});
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final service = ref.read(xtreamServiceProvider(widget.playlist));
|
final service = ref.read(xtreamServiceProvider(widget.playlist));
|
||||||
|
|||||||
Reference in new issue
Block a user