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,14 +79,31 @@ class ArtistHeader extends StatelessWidget {
fit: BoxFit.cover, fit: BoxFit.cover,
coverArt: artist.coverArt, coverArt: artist.coverArt,
thumbnail: false, thumbnail: false,
height: 350,
), ),
Column(
children: [
Container( 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( child: Padding(
padding: EdgeInsetsGeometry.symmetric(vertical: 12), padding: EdgeInsetsGeometry.symmetric(
vertical: 12,
horizontal: 16,
),
child: Text( child: Text(
artist.name, artist.name,
textAlign: TextAlign.center, textAlign: TextAlign.right,
style: textTheme.headlineLarge?.copyWith( style: textTheme.headlineLarge?.copyWith(
shadows: [ shadows: [
Shadow( Shadow(
@ -100,6 +117,8 @@ class ArtistHeader extends StatelessWidget {
), ),
], ],
), ),
],
),
); );
} }
} }