mirror of
https://github.com/madari-media/madari-oss.git
synced 2026-03-11 17:15:39 +00:00
fix: when no stream available fixed the loader
Some checks are pending
Build and Deploy / build_windows (push) Waiting to run
Build and Deploy / build_android (push) Waiting to run
Build and Deploy / build_ipa (push) Waiting to run
Build and Deploy / build_linux (push) Waiting to run
Build and Deploy / build_macos (push) Waiting to run
Some checks are pending
Build and Deploy / build_windows (push) Waiting to run
Build and Deploy / build_android (push) Waiting to run
Build and Deploy / build_ipa (push) Waiting to run
Build and Deploy / build_linux (push) Waiting to run
Build and Deploy / build_macos (push) Waiting to run
This commit is contained in:
parent
ca8fb57c2f
commit
1910432364
2 changed files with 24 additions and 19 deletions
|
|
@ -79,11 +79,6 @@ class StremioAddonService {
|
|||
),
|
||||
);
|
||||
|
||||
if (body.streams.isEmpty) {
|
||||
_logger.finer('No stream data found for URL: $url');
|
||||
continue;
|
||||
}
|
||||
|
||||
streams.addAll(
|
||||
body.streams.toList(),
|
||||
);
|
||||
|
|
|
|||
|
|
@ -298,12 +298,14 @@ class _StreamioStreamListState extends State<StreamioStreamList> {
|
|||
);
|
||||
}
|
||||
|
||||
context.push(
|
||||
url + query.join("&"),
|
||||
extra: {
|
||||
"meta": widget.meta,
|
||||
},
|
||||
);
|
||||
if (mounted) {
|
||||
context.push(
|
||||
url + query.join("&"),
|
||||
extra: {
|
||||
"meta": widget.meta,
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
: null,
|
||||
|
|
@ -527,14 +529,22 @@ class _StreamioStreamListState extends State<StreamioStreamList> {
|
|||
),
|
||||
),
|
||||
Expanded(
|
||||
child: ListView.separated(
|
||||
itemCount: filteredStreams.length,
|
||||
separatorBuilder: (context, index) => const Divider(height: 1),
|
||||
itemBuilder: (context, index) {
|
||||
final streamData = filteredStreams[index];
|
||||
return _buildStreamCard(streamData, theme);
|
||||
},
|
||||
),
|
||||
child: filteredStreams.isEmpty
|
||||
? Center(
|
||||
child: Text(
|
||||
"No streams found",
|
||||
style: theme.textTheme.titleMedium,
|
||||
),
|
||||
)
|
||||
: ListView.separated(
|
||||
itemCount: filteredStreams.length,
|
||||
separatorBuilder: (context, index) =>
|
||||
const Divider(height: 1),
|
||||
itemBuilder: (context, index) {
|
||||
final streamData = filteredStreams[index];
|
||||
return _buildStreamCard(streamData, theme);
|
||||
},
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in a new issue