-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show song artists on album screen (and more) (#287)
* SongListTile track artists WIP * ignore artist order * Offset DownloadedIndicator to align with track number, use ellipsis overflow for artists * Pass now played item to FavoriteButton * Use default color for FavoriteButton if not favorited * Add settings option * Replace stars with hearts in favorite buttons * Add favorite button to album and artist screen * Don't show favorite button for genres * Put download indicator in TextSpan, specify size * Align top, add 3 to widget size * Add offset * Remove redundant initState/dispose Co-authored-by: UnicornsOnLSD <44349936+UnicornsOnLSD@users.noreply.github.com>
- Loading branch information
Showing
15 changed files
with
224 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
lib/components/LayoutSettingsScreen/hide_song_artists_if_same_as_album_artists_selector.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:hive/hive.dart'; | ||
|
||
import '../../models/finamp_models.dart'; | ||
import '../../services/finamp_settings_helper.dart'; | ||
|
||
class HideSongArtistsIfSameAsAlbumArtistsSelector extends StatelessWidget { | ||
const HideSongArtistsIfSameAsAlbumArtistsSelector({Key? key}) : super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return ValueListenableBuilder<Box<FinampSettings>>( | ||
valueListenable: FinampSettingsHelper.finampSettingsListener, | ||
builder: (_, box, __) { | ||
return SwitchListTile( | ||
title: const Text("Hide Song Artists if same as Album Artists"), | ||
subtitle: const Text( | ||
"Whether or not to hide song artists on album screen if they don't differ from album artists."), | ||
value: FinampSettingsHelper.finampSettings.hideSongArtistsIfSameAsAlbumArtists, | ||
onChanged: (value) => | ||
FinampSettingsHelper.setHideSongArtistsIfSameAsAlbumArtists(value), | ||
); | ||
}, | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.