mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: color alpha
`withOpacity` -> `withValues` Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -9,8 +9,8 @@ Widget statDanMu({
|
||||
}) {
|
||||
Map<String, Color> colorObject = {
|
||||
'white': Colors.white,
|
||||
'gray': Theme.of(context).colorScheme.outline.withOpacity(0.8),
|
||||
'black': Theme.of(context).colorScheme.onSurface.withOpacity(0.7),
|
||||
'gray': Theme.of(context).colorScheme.outline.withValues(alpha: 0.8),
|
||||
'black': Theme.of(context).colorScheme.onSurface.withValues(alpha: 0.7),
|
||||
};
|
||||
Color color = colorObject[theme]!;
|
||||
return Row(
|
||||
|
||||
@@ -10,8 +10,8 @@ Widget statView({
|
||||
}) {
|
||||
Map<String, Color> colorObject = {
|
||||
'white': Colors.white,
|
||||
'gray': Theme.of(context).colorScheme.outline.withOpacity(0.8),
|
||||
'black': Theme.of(context).colorScheme.onSurface.withOpacity(0.7),
|
||||
'gray': Theme.of(context).colorScheme.outline.withValues(alpha: 0.8),
|
||||
'black': Theme.of(context).colorScheme.onSurface.withValues(alpha: 0.7),
|
||||
};
|
||||
Color color = colorObject[theme]!;
|
||||
return Row(
|
||||
|
||||
Reference in New Issue
Block a user