mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-11 17:30:00 +02:00
feat: Add Movies tab with search, pagination, and hero carousel for movie browsing.
This commit is contained in:
1 parent
4f484be343
commit
fcf6a8283d
3 files changed
+11
-23
No files matched your search
@@ -55,10 +55,16 @@ class Movie {
|
||||
});
|
||||
|
||||
factory Movie.fromJson(Map<String, dynamic> json) {
|
||||
// Essayer plusieurs champs possibles pour l'image (différentes API Xtream utilisent différents noms)
|
||||
final imageUrl = json['stream_icon']?.toString() ??
|
||||
json['cover']?.toString() ??
|
||||
json['movie_image']?.toString() ??
|
||||
json['cover_big']?.toString();
|
||||
|
||||
return Movie(
|
||||
streamId: json['stream_id']?.toString() ?? '',
|
||||
name: json['name']?.toString() ?? 'Unknown',
|
||||
streamIcon: json['stream_icon']?.toString(),
|
||||
streamIcon: imageUrl,
|
||||
categoryId: json['category_id']?.toString(),
|
||||
categoryName: json['category_name']?.toString() ?? '',
|
||||
containerExtension: json['container_extension']?.toString() ?? 'mp4',
|
||||
|
||||
Reference in new issue
Block a user