opt: AppBar渐变背景

This commit is contained in:
guozhigq
2024-07-05 22:54:21 +08:00
parent 797abca902
commit 4db4e1f32b

View File

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