mirror of
https://github.com/R0m1k3/xtremobile.git
synced 2026-10-22 22:58:14 +02:00
feat: Add mobile-specific Riverpod providers for Xtream service, live TV, movies, series, and EPG data, along with UI state management.
This commit is contained in:
1 parent
f85f43e42f
commit
e1a0802a0c
18 files changed
+1619
-574
No files matched your search
@@ -145,14 +145,24 @@ final mobileLiveTvUiStateProvider =
|
||||
StateProvider<LiveTvUiState>((ref) => LiveTvUiState());
|
||||
|
||||
class LiveTvUiState {
|
||||
final String? selectedCategory;
|
||||
final String? selectedCategory; // category NAME (for display)
|
||||
final String? selectedCategoryId; // category ID (for API calls)
|
||||
final bool isCategoryView;
|
||||
|
||||
LiveTvUiState({this.selectedCategory, this.isCategoryView = true});
|
||||
LiveTvUiState({
|
||||
this.selectedCategory,
|
||||
this.selectedCategoryId,
|
||||
this.isCategoryView = true,
|
||||
});
|
||||
|
||||
LiveTvUiState copyWith({String? selectedCategory, bool? isCategoryView}) {
|
||||
LiveTvUiState copyWith({
|
||||
String? selectedCategory,
|
||||
String? selectedCategoryId,
|
||||
bool? isCategoryView,
|
||||
}) {
|
||||
return LiveTvUiState(
|
||||
selectedCategory: selectedCategory ?? this.selectedCategory,
|
||||
selectedCategoryId: selectedCategoryId ?? this.selectedCategoryId,
|
||||
isCategoryView: isCategoryView ?? this.isCategoryView,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user