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

@@ -171,13 +171,13 @@ class _ColorSelectPageState extends State<ColorSelectPage> {
width: 46,
height: 46,
decoration: BoxDecoration(
color: e['color'].withOpacity(0.8),
color: e['color'].withValues(alpha: 0.8),
borderRadius: BorderRadius.circular(50),
border: Border.all(
width: 2,
color: ctr.currentColor.value == index
? Colors.black
: e['color'].withOpacity(0.8),
: e['color'].withValues(alpha: 0.8),
),
),
child: AnimatedOpacity(

View File

@@ -72,7 +72,7 @@ class _FontSizeSelectPageState extends State<FontSizeSelectPage> {
color: Theme.of(context)
.colorScheme
.primary
.withOpacity(0.3))),
.withValues(alpha: 0.3))),
color: Theme.of(context).colorScheme.surface,
),
child: Row(