Skip to content

Commit

Permalink
minor bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sheikhhaziq committed Jul 10, 2024
1 parent 96d81b6 commit 0964c4b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
1 change: 1 addition & 0 deletions lib/screens/browse_screen/browse_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ class _BrowseScreenState extends State<BrowseScreen> {
return AdaptiveScaffold(
appBar: AdaptiveAppBar(
title: header['title'] != null ? Text(header['title']) : null,
centerTitle: true,
),
body: initialLoading
? const Center(child: AdaptiveProgressRing())
Expand Down
8 changes: 3 additions & 5 deletions lib/screens/main_screen/player_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -601,11 +601,9 @@ class NameAndControls extends StatelessWidget {
? AdaptiveIcons.repeat_all
: AdaptiveIcons.repeat_one,
size: 30,
color:
value == LoopMode.one || value == LoopMode.all
? (AdaptiveTheme.of(context).primaryColor)
.withOpacity(0.5)
: null,
color: value == LoopMode.off
? Colors.white.withOpacity(0.3)
: null,
),
);
}),
Expand Down
10 changes: 7 additions & 3 deletions lib/screens/ytmusic_screen/youtube_history.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,13 @@ class _YoutubeHistoryState extends State<YoutubeHistory> {
padding: const EdgeInsets.symmetric(
horizontal: 8, vertical: 8),
child: Column(
children: sections.map((history) {
children: sections.indexed.map((section) {
int index = section.$1;
Map history = section.$2;
return Column(
children: [
if (history['title'] != null)
if (history['title'] != null &&
history['contents'].isNotEmpty)
AdaptiveListTile(
title: Text(
history['title']!,
Expand Down Expand Up @@ -119,7 +122,8 @@ class _YoutubeHistoryState extends State<YoutubeHistory> {
);
if (deleted) {
setState(() {
history.remove(item);
sections[index]['contents']
.remove(item);
});
}
if (context.mounted) {
Expand Down

0 comments on commit 0964c4b

Please sign in to comment.