mod: color alpha

`withOpacity` -> `withValues`

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-19 20:21:01 +08:00
parent 45b4f9570b
commit a7ffc3b05f
62 changed files with 193 additions and 164 deletions

View File

@@ -18,7 +18,7 @@ Widget addWidget(item, context, type, {floor = 1}) {
'ADDITIONAL_TYPE_COMMON': item.modules.moduleDynamic.additional.common,
};
Color bgColor = floor == 1
? Theme.of(context).dividerColor.withOpacity(0.08)
? Theme.of(context).dividerColor.withValues(alpha: 0.08)
: Theme.of(context).colorScheme.surface;
switch (type) {
case 'ADDITIONAL_TYPE_UGC':