mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 15:02:42 +01:00
refactor artist to use coverArt
fix cover art image caching
This commit is contained in:
@@ -47,9 +47,7 @@ class ArtistListTile extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return ListTile(
|
||||
leading: CircleClip(
|
||||
child: artist.coverArt != null
|
||||
? CoverArtImage(coverArt: artist.coverArt)
|
||||
: CachedImage(artist.smallImage),
|
||||
child: CoverArtImage(coverArt: artist.coverArt),
|
||||
),
|
||||
title: Text(artist.name),
|
||||
subtitle: albumCount != null ? Text('$albumCount albums') : null,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||
|
||||
import '../../services/sync_services.dart';
|
||||
import '../../services/sync_service.dart';
|
||||
import 'database.dart';
|
||||
import 'settings.dart';
|
||||
import 'source.dart';
|
||||
|
||||
Reference in New Issue
Block a user