Skip to content

Commit

Permalink
use AddToPlaylistButton instead of FavoriteButton
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaphasilor committed Jul 31, 2024
1 parent 4aa9336 commit 19bec56
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 10 additions & 5 deletions lib/components/AlbumScreen/song_list_tile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import 'package:audio_service/audio_service.dart';
import 'package:collection/collection.dart';
import 'package:finamp/components/AlbumScreen/song_menu.dart';
import 'package:finamp/components/MusicScreen/music_screen_tab_view.dart';
import 'package:finamp/components/AddToPlaylistScreen/add_to_playlist_button.dart';
import 'package:finamp/components/global_snackbar.dart';
import 'package:finamp/models/finamp_models.dart';
import 'package:finamp/models/jellyfin_models.dart' as jellyfin_models;
Expand Down Expand Up @@ -503,7 +504,7 @@ class _TrackListItemState extends State<TrackListItem>
mainAxisAlignment: MainAxisAlignment.center,
children: [
Padding(
padding: const EdgeInsets.only(top: 2.0),
padding: const EdgeInsets.only(top: 1.0),
child: Text(
baseItem.name ?? AppLocalizations.of(context)!.unknownName,
style: widget.isCurrentTrack
Expand All @@ -521,7 +522,7 @@ class _TrackListItemState extends State<TrackListItem>
),
),
Padding(
padding: const EdgeInsets.only(top: 3.0),
padding: const EdgeInsets.only(top: 2.0),
child: Text(
baseItem.artists?.join(", ") ?? baseItem.albumArtist ?? AppLocalizations.of(context)!.unknownArtist,
style: TextStyle(
Expand Down Expand Up @@ -552,9 +553,13 @@ class _TrackListItemState extends State<TrackListItem>
color: Theme.of(context).textTheme.bodySmall?.color,
),
),
FavoriteButton(
item: widget.item,
onlyIfFav: false,
AddToPlaylistButton(
item: baseItem,
color: Colors.white,
size: 24,
visualDensity:
const VisualDensity(
horizontal: -4,),
),
],
),
Expand Down
2 changes: 1 addition & 1 deletion lib/components/MusicScreen/alphabet_item_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class _AlphabetListState extends State<AlphabetList> {
alphabet.length,
(x) => Container(
padding:
const EdgeInsets.only(right: 2.0),
const EdgeInsets.only(right: 1.0),
height: _letterHeight,
child: FittedBox(
child: Text(
Expand Down

0 comments on commit 19bec56

Please sign in to comment.