feat: remove video_player_win dependency

This commit is contained in:
Michael committed 2025-12-16 07:46:14 +01:00
1 parent 8c3a143f46
commit 37f6ab08db
9 files changed
+101 -58

No files matched your search

@@ -198,7 +198,9 @@ class _MobileSeriesTabState extends ConsumerState<MobileSeriesTab> {
child: TextField(
controller: _searchController,
style: GoogleFonts.inter(
fontSize: 14, color: Colors.white),
fontSize: 14,
color: Colors.white,
),
decoration: InputDecoration(
hintText: 'Search Series...',
hintStyle: GoogleFonts.inter(color: Colors.white54),
@@ -211,18 +213,24 @@ class _MobileSeriesTabState extends ConsumerState<MobileSeriesTab> {
),
if (_isSearching)
const SizedBox(
width: 12,
height: 12,
child: CircularProgressIndicator(
strokeWidth: 2, color: Colors.white)),
width: 12,
height: 12,
child: CircularProgressIndicator(
strokeWidth: 2,
color: Colors.white,
),
),
if (_searchQuery.isNotEmpty)
GestureDetector(
onTap: () {
_searchController.clear();
_onSearchChanged('');
},
child: const Icon(Icons.close,
size: 16, color: Colors.white),
child: const Icon(
Icons.close,
size: 16,
color: Colors.white,
),
),
],
),
@@ -242,7 +250,8 @@ class _MobileSeriesTabState extends ConsumerState<MobileSeriesTab> {
onTap: (item) {
try {
final series = _series.firstWhere(
(s) => s.seriesId.toString() == item.id);
(s) => s.seriesId.toString() == item.id,
);
_openSeries(series);
} catch (e) {
// Fallback
@@ -286,8 +295,11 @@ class _MobileSeriesTabState extends ConsumerState<MobileSeriesTab> {
)
: Container(
color: Colors.white10,
child: const Icon(Icons.tv,
color: Colors.white24)),
child: const Icon(
Icons.tv,
color: Colors.white24,
),
),
),
// Gradient Overlay
@@ -303,11 +315,12 @@ class _MobileSeriesTabState extends ConsumerState<MobileSeriesTab> {
end: Alignment.bottomCenter,
colors: [
Colors.transparent,
Colors.black.withOpacity(0.9)
Colors.black.withOpacity(0.9),
],
),
borderRadius: const BorderRadius.vertical(
bottom: Radius.circular(16)),
bottom: Radius.circular(16),
),
),
),
),
@@ -320,9 +333,10 @@ class _MobileSeriesTabState extends ConsumerState<MobileSeriesTab> {
child: Text(
series.name,
style: GoogleFonts.inter(
color: Colors.white,
fontSize: 13,
fontWeight: FontWeight.w600),
color: Colors.white,
fontSize: 13,
fontWeight: FontWeight.w600,
),
maxLines: 2,
overflow: TextOverflow.ellipsis,
),
@@ -337,19 +351,25 @@ class _MobileSeriesTabState extends ConsumerState<MobileSeriesTab> {
borderRadius: 4,
opacity: 0.6,
padding: const EdgeInsets.symmetric(
horizontal: 6, vertical: 2),
horizontal: 6,
vertical: 2,
),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
const Icon(Icons.star,
size: 10, color: Colors.amber),
const Icon(
Icons.star,
size: 10,
color: Colors.amber,
),
const SizedBox(width: 4),
Text(
_formatRating(series.rating)!,
style: GoogleFonts.inter(
fontSize: 10,
fontWeight: FontWeight.bold,
color: Colors.white),
fontSize: 10,
fontWeight: FontWeight.bold,
color: Colors.white,
),
),
],
),
@@ -369,7 +389,8 @@ class _MobileSeriesTabState extends ConsumerState<MobileSeriesTab> {
child: Padding(
padding: EdgeInsets.all(24),
child: Center(
child: CircularProgressIndicator(color: Colors.white)),
child: CircularProgressIndicator(color: Colors.white),
),
),
),
],