mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-20 21:48:06 +02:00
feat: add mobile movies and series tabs for IPTV content display
This commit is contained in:
1 parent
d1fbfe0f1e
commit
ac30bd98b4
7 files changed
+67
-31
No files matched your search
@@ -61,6 +61,15 @@ class _SeriesDetailScreenState extends ConsumerState<SeriesDetailScreen> {
|
||||
}
|
||||
}
|
||||
|
||||
String? _formatRating(String? rating) {
|
||||
if (rating == null || rating.isEmpty) return null;
|
||||
final value = double.tryParse(rating);
|
||||
if (value != null) {
|
||||
return value.toStringAsFixed(1);
|
||||
}
|
||||
return rating;
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
@@ -144,7 +153,7 @@ class _SeriesDetailScreenState extends ConsumerState<SeriesDetailScreen> {
|
||||
Icon(Icons.star, size: 16, color: Colors.amber.shade700),
|
||||
const SizedBox(width: 4),
|
||||
Text(
|
||||
_seriesInfo!.rating!,
|
||||
_formatRating(_seriesInfo!.rating!)!,
|
||||
style: GoogleFonts.roboto(fontSize: 13, color: Colors.white70),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user