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,
),