artist screen tweaks

This commit is contained in:
austinried 2025-12-07 13:21:21 +09:00
parent 4183e2d3b9
commit ba169092fd

View File

@ -36,7 +36,7 @@ class ArtistScreen extends HookConsumerWidget {
final query = AlbumsQuery(
sourceId: sourceId,
// filter: IList([AlbumsFilter.artistId(artist.id)]),
filter: IList([AlbumsFilter.artistId(artist.id)]),
sort: IList([
SortingTerm.albumsDesc(AlbumsColumn.year),
SortingTerm.albumsAsc(AlbumsColumn.name),
@ -79,14 +79,31 @@ class ArtistHeader extends StatelessWidget {
fit: BoxFit.cover,
coverArt: artist.coverArt,
thumbnail: false,
height: 350,
),
Column(
children: [
Container(
color: colorScheme.surface.withAlpha(120),
width: double.infinity,
decoration: BoxDecoration(
gradient: LinearGradient(
begin: AlignmentGeometry.centerRight,
end: AlignmentGeometry.centerLeft,
colors: [
colorScheme.surface.withAlpha(220),
colorScheme.surface.withAlpha(150),
colorScheme.surface.withAlpha(20),
],
),
),
child: Padding(
padding: EdgeInsetsGeometry.symmetric(vertical: 12),
padding: EdgeInsetsGeometry.symmetric(
vertical: 12,
horizontal: 16,
),
child: Text(
artist.name,
textAlign: TextAlign.center,
textAlign: TextAlign.right,
style: textTheme.headlineLarge?.copyWith(
shadows: [
Shadow(
@ -100,6 +117,8 @@ class ArtistHeader extends StatelessWidget {
),
],
),
],
),
);
}
}