chore: album's header styling (#18930)

This commit is contained in:
Alex 2025-06-04 21:09:53 -05:00 committed by GitHub
parent a26d703335
commit f64a3003af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 12 additions and 7 deletions

View File

@ -114,9 +114,9 @@ class AlbumViewer extends HookConsumerWidget {
begin: Alignment.topCenter, begin: Alignment.topCenter,
end: Alignment.bottomCenter, end: Alignment.bottomCenter,
colors: [ colors: [
context.primaryColor.withValues(alpha: 0.06),
context.primaryColor.withValues(alpha: 0.04), context.primaryColor.withValues(alpha: 0.04),
context.primaryColor.withValues(alpha: 0.02), Colors.indigo.withValues(alpha: 0.02),
Colors.orange.withValues(alpha: 0.02),
Colors.transparent, Colors.transparent,
], ],
stops: const [0.0, 0.3, 0.7, 1.0], stops: const [0.0, 0.3, 0.7, 1.0],

View File

@ -17,11 +17,15 @@ class AlbumActionFilledButton extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Padding( return Padding(
padding: const EdgeInsets.only(right: 8.0), padding: const EdgeInsets.only(right: 8.0),
child: FilledButton.icon( child: OutlinedButton.icon(
style: FilledButton.styleFrom( style: OutlinedButton.styleFrom(
padding: const EdgeInsets.symmetric(vertical: 0, horizontal: 16), padding: const EdgeInsets.symmetric(vertical: 0, horizontal: 16),
shape: RoundedRectangleBorder( shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.circular(25), borderRadius: BorderRadius.all(Radius.circular(20)),
),
side: BorderSide(
color: context.colorScheme.surfaceContainerHighest,
width: 1,
), ),
backgroundColor: context.colorScheme.surfaceContainerHigh, backgroundColor: context.colorScheme.surfaceContainerHigh,
), ),

View File

@ -326,6 +326,7 @@ class AlbumViewerAppbar extends HookConsumerWidget
return AppBar( return AppBar(
elevation: 0, elevation: 0,
backgroundColor: context.scaffoldBackgroundColor,
leading: buildLeadingButton(), leading: buildLeadingButton(),
centerTitle: false, centerTitle: false,
actions: [ actions: [

View File

@ -55,7 +55,7 @@ class AlbumViewerEditableDescription extends HookConsumerWidget {
} }
}, },
focusNode: descriptionFocusNode, focusNode: descriptionFocusNode,
style: context.textTheme.bodyMedium, style: context.textTheme.bodyLarge,
maxLines: 3, maxLines: 3,
minLines: 1, minLines: 1,
controller: descriptionTextEditController, controller: descriptionTextEditController,