mirror of
https://github.com/R0m1k3/xtremobile.git
synced 2026-10-11 17:29:26 +02:00
v1.0.4: Fix season chip visibility in light mode
This commit is contained in:
1 parent
5a64920ae5
commit
cce8625372
2 files changed
+30
-23
No files matched your search
@@ -205,29 +205,36 @@ class _MobileSeriesDetailScreenState extends ConsumerState<MobileSeriesDetailScr
|
|||||||
SliverToBoxAdapter(
|
SliverToBoxAdapter(
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
height: 50,
|
height: 50,
|
||||||
child: ListView.separated(
|
child: Builder(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 16),
|
builder: (context) {
|
||||||
scrollDirection: Axis.horizontal,
|
final isDark = Theme.of(context).brightness == Brightness.dark;
|
||||||
itemCount: _seriesInfo!.episodes.keys.length,
|
return ListView.separated(
|
||||||
separatorBuilder: (_, __) => const SizedBox(width: 8),
|
padding: const EdgeInsets.symmetric(horizontal: 16),
|
||||||
itemBuilder: (context, index) {
|
scrollDirection: Axis.horizontal,
|
||||||
final seasonNum = _seriesInfo!.episodes.keys.elementAt(index);
|
itemCount: _seriesInfo!.episodes.keys.length,
|
||||||
final isSelected = seasonNum == _selectedSeason;
|
separatorBuilder: (_, __) => const SizedBox(width: 8),
|
||||||
return ChoiceChip(
|
itemBuilder: (context, index) {
|
||||||
label: Text('Season $seasonNum'),
|
final seasonNum = _seriesInfo!.episodes.keys.elementAt(index);
|
||||||
selected: isSelected,
|
final isSelected = seasonNum == _selectedSeason;
|
||||||
onSelected: (selected) {
|
return ChoiceChip(
|
||||||
if (selected) setState(() => _selectedSeason = seasonNum);
|
label: Text('Season $seasonNum'),
|
||||||
|
selected: isSelected,
|
||||||
|
onSelected: (selected) {
|
||||||
|
if (selected) setState(() => _selectedSeason = seasonNum);
|
||||||
|
},
|
||||||
|
backgroundColor: isDark ? const Color(0xFF1C1C1E) : Colors.grey.shade300,
|
||||||
|
selectedColor: isDark ? Colors.white : Colors.blue,
|
||||||
|
labelStyle: TextStyle(
|
||||||
|
color: isSelected
|
||||||
|
? (isDark ? Colors.black : Colors.white)
|
||||||
|
: (isDark ? Colors.grey.shade400 : Colors.grey.shade700),
|
||||||
|
fontWeight: isSelected ? FontWeight.w600 : FontWeight.w400,
|
||||||
|
),
|
||||||
|
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(20)),
|
||||||
|
showCheckmark: false,
|
||||||
|
side: BorderSide.none,
|
||||||
|
);
|
||||||
},
|
},
|
||||||
backgroundColor: AppColors.surface,
|
|
||||||
selectedColor: AppColors.primary,
|
|
||||||
labelStyle: TextStyle(
|
|
||||||
color: isSelected ? Colors.white : AppColors.textSecondary,
|
|
||||||
fontWeight: isSelected ? FontWeight.w600 : FontWeight.w400,
|
|
||||||
),
|
|
||||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(20)),
|
|
||||||
showCheckmark: false,
|
|
||||||
side: BorderSide.none,
|
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ class _MobileSettingsTabState extends ConsumerState<MobileSettingsTab> {
|
|||||||
),
|
),
|
||||||
SizedBox(height: 4),
|
SizedBox(height: 4),
|
||||||
Text(
|
Text(
|
||||||
'Version 1.0.3',
|
'Version 1.0.4',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 13,
|
fontSize: 13,
|
||||||
color: AppColors.textSecondary,
|
color: AppColors.textSecondary,
|
||||||
|
|||||||
Reference in new issue
Block a user