fixed deprecated warnings

This commit is contained in:
Marton Kiss
2025-01-31 10:24:37 +01:00
parent 67649cc5fd
commit b5ee1afe05
102 changed files with 755 additions and 557 deletions

View File

@@ -81,13 +81,13 @@ class StatisticsTile extends StatelessWidget {
decoration: BoxDecoration(
color: fill
? (color ?? gradeColor(context: context, value: value))
.withOpacity(.2)
.withValues(alpha: .2)
: null,
border: outline || fill
? Border.all(
color:
(color ?? gradeColor(context: context, value: value))
.withOpacity(outline ? 1.0 : 0.0),
.withValues(alpha: outline ? 1.0 : 0.0),
width: fill ? 5.0 : 5.0,
)
: null,