refactor artist to use coverArt

fix cover art image caching
This commit is contained in:
austinried
2025-11-09 17:11:35 +09:00
parent 42ff02f88e
commit aaab1d1278
15 changed files with 116 additions and 260 deletions

View File

@@ -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,

View File

@@ -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';