opt: AppBar渐变背景

This commit is contained in:
guozhigq
2024-07-05 22:54:21 +08:00
parent a276aea3da
commit 739e1d9ada

View File

@ -78,16 +78,16 @@ class _HomePageState extends State<HomePage>
Theme.of(context) Theme.of(context)
.colorScheme .colorScheme
.primary .primary
.withOpacity(0.9), .withOpacity(0.4),
Theme.of(context) Theme.of(context)
.colorScheme .colorScheme
.primary .surface
.withOpacity(0.5), .withOpacity(0.5),
Theme.of(context).colorScheme.surface Theme.of(context).colorScheme.surface
], ],
begin: Alignment.topLeft, begin: Alignment.topCenter,
end: Alignment.bottomRight, end: Alignment.bottomCenter,
stops: const [0, 0.0034, 0.34]), stops: const [0.1, 0.3, 0.5]),
), ),
), ),
), ),