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

@@ -39,7 +39,7 @@ class CertificationCard extends StatelessWidget {
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(12.0),
gradient: LinearGradient(
colors: [color, color.withOpacity(.75)],
colors: [color, color.withValues(alpha: .75)],
),
),
child: Material(
@@ -65,7 +65,7 @@ class CertificationCard extends StatelessWidget {
TextSpan(
text: "${grades.length}",
style: TextStyle(
color: textColor.withOpacity(.75),
color: textColor.withValues(alpha: .75),
fontWeight: FontWeight.w600,
fontSize: 16.0,
),

View File

@@ -66,7 +66,7 @@ class CertificationTile extends StatelessWidget {
child: ListTile(
tileColor: gradeColor(
context: context, value: grade.value.value, nocolor: false)
.withOpacity(.1),
.withValues(alpha: .1),
visualDensity: VisualDensity.compact,
contentPadding: isSubjectView
? const EdgeInsets.only(left: 20.0, right: 12.0, bottom: 6.0)
@@ -85,7 +85,7 @@ class CertificationTile extends StatelessWidget {
SubjectIcon.resolveVariant(
subject: grade.subject, context: context),
size: 28.0,
color: AppColors.of(context).text.withOpacity(.75)),
color: AppColors.of(context).text.withValues(alpha: .75)),
),
minLeadingWidth: isSubjectView ? 32.0 : 42.0,
trailing: isSubjectView