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

@@ -334,7 +334,7 @@ class _ListSheetContentState extends State<ListSheetContent>
),
Divider(
height: 1,
color: Theme.of(context).dividerColor.withOpacity(0.1),
color: Theme.of(context).dividerColor.withValues(alpha: 0.1),
),
if (_isList)
Material(
@@ -346,7 +346,8 @@ class _ListSheetContentState extends State<ListSheetContent>
.map((item) => Tab(text: item.title))
.toList(),
dividerHeight: 1,
dividerColor: Theme.of(context).dividerColor.withOpacity(0.1),
dividerColor:
Theme.of(context).dividerColor.withValues(alpha: 0.1),
),
),
Expanded(
@@ -407,7 +408,7 @@ class _ListSheetContentState extends State<ListSheetContent>
itemScrollController: itemScrollController[i ?? 0],
separatorBuilder: (context, index) => Divider(
height: 1,
color: Theme.of(context).dividerColor.withOpacity(0.1),
color: Theme.of(context).dividerColor.withValues(alpha: 0.1),
),
),
);