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