fixed deprecated warnings
This commit is contained in:
@@ -15,7 +15,7 @@ class AbsenceDisplay extends StatelessWidget {
|
||||
padding: const EdgeInsets.only(top: 5.0),
|
||||
// padding: const EdgeInsets.symmetric(vertical: 4.0, horizontal: 6.0),
|
||||
// decoration: BoxDecoration(
|
||||
// color: Theme.of(context).scaffoldBackgroundColor.withOpacity(.2),
|
||||
// color: Theme.of(context).scaffoldBackgroundColor.withValues(alpha: .2),
|
||||
// borderRadius: BorderRadius.circular(12.0),
|
||||
// ),
|
||||
child: Row(children: [
|
||||
|
||||
@@ -81,7 +81,7 @@ class AbsenceSubjectTile extends StatelessWidget {
|
||||
// fontFamily: "monospace",
|
||||
color:
|
||||
getColorByPercentage(percentage, context: context)
|
||||
.withOpacity(0.8),
|
||||
.withValues(alpha: 0.8),
|
||||
fontSize: 16.0,
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
@@ -109,5 +109,5 @@ Color getColorByPercentage(double percentage, {required BuildContext context}) {
|
||||
color = AppColors.of(context).yellow;
|
||||
}
|
||||
|
||||
return color.withOpacity(.8);
|
||||
return color.withValues(alpha: .8);
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ class AbsenceTile extends StatelessWidget {
|
||||
width: 39,
|
||||
decoration: BoxDecoration(
|
||||
shape: BoxShape.circle,
|
||||
color: !group ? color.withOpacity(.25) : null,
|
||||
color: !group ? color.withValues(alpha: .25) : null,
|
||||
),
|
||||
child: Center(
|
||||
child: Icon(justificationIcon(absence.state), color: color)),
|
||||
|
||||
@@ -51,7 +51,7 @@ class AbsenceView extends StatelessWidget {
|
||||
height: 44.0,
|
||||
decoration: BoxDecoration(
|
||||
shape: BoxShape.circle,
|
||||
color: color.withOpacity(.25),
|
||||
color: color.withValues(alpha: .25),
|
||||
),
|
||||
child: Center(
|
||||
child: Icon(
|
||||
|
||||
@@ -48,7 +48,7 @@ class AbsenceGroupTile extends StatelessWidget {
|
||||
height: 39.0,
|
||||
decoration: BoxDecoration(
|
||||
shape: BoxShape.circle,
|
||||
color: color.withOpacity(.25),
|
||||
color: color.withValues(alpha: .25),
|
||||
),
|
||||
child: Center(
|
||||
child: Icon(AbsenceTile.justificationIcon(state),
|
||||
@@ -76,7 +76,9 @@ class AbsenceGroupTile extends StatelessWidget {
|
||||
.format(context, weekday: true),
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.w500,
|
||||
color: AppColors.of(context).text.withOpacity(0.8)),
|
||||
color: AppColors.of(context)
|
||||
.text
|
||||
.withValues(alpha: 0.8)),
|
||||
)
|
||||
: null,
|
||||
children: absences,
|
||||
|
||||
@@ -32,7 +32,7 @@ class AdTile extends StatelessWidget {
|
||||
style: TextStyle(
|
||||
fontSize: 14.5,
|
||||
fontWeight: FontWeight.w500,
|
||||
color: AppColors.of(context).text.withOpacity(0.7),
|
||||
color: AppColors.of(context).text.withValues(alpha: 0.7),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
@@ -17,7 +17,7 @@ class CardHandle extends StatelessWidget {
|
||||
margin: const EdgeInsets.only(top: 12.0),
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(45.0),
|
||||
color: AppColors.of(context).text.withOpacity(0.10),
|
||||
color: AppColors.of(context).text.withValues(alpha: 0.10),
|
||||
),
|
||||
),
|
||||
if (child != null) child!,
|
||||
|
||||
@@ -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,
|
||||
),
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -34,7 +34,7 @@ class CustomSegmentedControl extends StatelessWidget {
|
||||
initialValue: value,
|
||||
children: finalChildren,
|
||||
decoration: BoxDecoration(
|
||||
color: Theme.of(context).colorScheme.secondary.withOpacity(.069),
|
||||
color: Theme.of(context).colorScheme.secondary.withValues(alpha: .069),
|
||||
borderRadius: BorderRadius.circular(12.0),
|
||||
),
|
||||
thumbDecoration: BoxDecoration(
|
||||
@@ -42,7 +42,7 @@ class CustomSegmentedControl extends StatelessWidget {
|
||||
borderRadius: BorderRadius.circular(10.0),
|
||||
// boxShadow: [
|
||||
// BoxShadow(
|
||||
// color: Colors.black.withOpacity(.3),
|
||||
// color: Colors.black.withValues(alpha: .3),
|
||||
// blurRadius: 4.0,
|
||||
// spreadRadius: 1.0,
|
||||
// offset: const Offset(
|
||||
@@ -66,7 +66,7 @@ class CustomSegmentedControl extends StatelessWidget {
|
||||
// endIndent: 2,
|
||||
// thickness: 2,
|
||||
decoration: BoxDecoration(
|
||||
color: AppColors.of(context).text.withOpacity(0.2),
|
||||
color: AppColors.of(context).text.withValues(alpha: 0.2),
|
||||
),
|
||||
),
|
||||
height: height,
|
||||
|
||||
@@ -28,7 +28,9 @@ class CustomSwitch extends StatelessWidget {
|
||||
borderRadius: const BorderRadius.all(
|
||||
Radius.circular(25.0),
|
||||
),
|
||||
color: value ? Theme.of(context).colorScheme.secondary : Theme.of(context).highlightColor,
|
||||
color: value
|
||||
? Theme.of(context).colorScheme.secondary
|
||||
: Theme.of(context).highlightColor,
|
||||
),
|
||||
),
|
||||
AnimatedAlign(
|
||||
@@ -44,7 +46,7 @@ class CustomSwitch extends StatelessWidget {
|
||||
color: Colors.white,
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: Colors.black12.withOpacity(0.1),
|
||||
color: Colors.black12.withValues(alpha: 0.1),
|
||||
spreadRadius: 0.5,
|
||||
blurRadius: 1,
|
||||
)
|
||||
|
||||
@@ -59,7 +59,7 @@ class ExamTile extends StatelessWidget {
|
||||
? Icon(
|
||||
SubjectIcon.resolveVariant(
|
||||
context: context, subject: exam.subject),
|
||||
color: AppColors.of(context).text.withOpacity(.5),
|
||||
color: AppColors.of(context).text.withValues(alpha: .5),
|
||||
)
|
||||
: null,
|
||||
minLeadingWidth: 0,
|
||||
|
||||
@@ -31,7 +31,7 @@ class ExamView extends StatelessWidget {
|
||||
SubjectIcon.resolveVariant(
|
||||
subject: exam.subject, context: context),
|
||||
size: 36.0,
|
||||
color: AppColors.of(context).text.withOpacity(.75),
|
||||
color: AppColors.of(context).text.withValues(alpha: .75),
|
||||
),
|
||||
),
|
||||
title: Text(
|
||||
|
||||
@@ -122,7 +122,7 @@ class ExamPopup extends StatelessWidget {
|
||||
color: ColorsUtils()
|
||||
.fade(context, Theme.of(context).colorScheme.secondary,
|
||||
darkenAmount: 0.1, lightenAmount: 0.1)
|
||||
.withOpacity(0.33),
|
||||
.withValues(alpha: 0.33),
|
||||
width: MediaQuery.of(context).size.width,
|
||||
),
|
||||
Container(
|
||||
@@ -135,10 +135,10 @@ class ExamPopup extends StatelessWidget {
|
||||
Theme.of(context).scaffoldBackgroundColor,
|
||||
Theme.of(context)
|
||||
.scaffoldBackgroundColor
|
||||
.withOpacity(0.1),
|
||||
.withValues(alpha: 0.1),
|
||||
Theme.of(context)
|
||||
.scaffoldBackgroundColor
|
||||
.withOpacity(0.1),
|
||||
.withValues(alpha: 0.1),
|
||||
Theme.of(context).scaffoldBackgroundColor,
|
||||
],
|
||||
stops: const [0.1, 0.5, 0.7, 1.0],
|
||||
@@ -166,7 +166,7 @@ class ExamPopup extends StatelessWidget {
|
||||
.fade(
|
||||
context, Theme.of(context).colorScheme.secondary,
|
||||
darkenAmount: 0.1, lightenAmount: 0.1)
|
||||
.withOpacity(0.33),
|
||||
.withValues(alpha: 0.33),
|
||||
borderRadius: BorderRadius.circular(
|
||||
2.0,
|
||||
),
|
||||
@@ -186,7 +186,7 @@ class ExamPopup extends StatelessWidget {
|
||||
Theme.of(context).colorScheme.secondary,
|
||||
amount: 0.1,
|
||||
)
|
||||
.withOpacity(0.9),
|
||||
.withValues(alpha: 0.9),
|
||||
width: 1.5,
|
||||
padding: 10.0,
|
||||
icon: Icon(
|
||||
@@ -198,7 +198,7 @@ class ExamPopup extends StatelessWidget {
|
||||
Theme.of(context).colorScheme.secondary,
|
||||
amount: 0.1,
|
||||
)
|
||||
.withOpacity(0.8),
|
||||
.withValues(alpha: 0.8),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -236,7 +236,7 @@ class ExamPopup extends StatelessWidget {
|
||||
style: TextStyle(
|
||||
color: AppColors.of(context)
|
||||
.text
|
||||
.withOpacity(0.9),
|
||||
.withValues(alpha: 0.9),
|
||||
fontSize: 16.0,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
@@ -298,7 +298,7 @@ class ExamPopup extends StatelessWidget {
|
||||
style: TextStyle(
|
||||
color: AppColors.of(context)
|
||||
.text
|
||||
.withOpacity(0.9),
|
||||
.withValues(alpha: 0.9),
|
||||
fontSize: 16.0,
|
||||
fontWeight: FontWeight.w600,
|
||||
fontStyle: ((lesson?.subject.isRenamed ??
|
||||
@@ -315,8 +315,9 @@ class ExamPopup extends StatelessWidget {
|
||||
Text(
|
||||
'${DateFormat('MMM d, H:mm', I18n.locale.countryCode).format(lesson!.start).capital()} - ${DateFormat('H:mm').format(lesson!.end)}',
|
||||
style: TextStyle(
|
||||
color:
|
||||
AppColors.of(context).text.withOpacity(0.85),
|
||||
color: AppColors.of(context)
|
||||
.text
|
||||
.withValues(alpha: 0.85),
|
||||
fontSize: 14.0,
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
@@ -359,7 +360,7 @@ class ExamPopup extends StatelessWidget {
|
||||
// 'view_subject'.i18n,
|
||||
// style: TextStyle(
|
||||
// color:
|
||||
// AppColors.of(context).text.withOpacity(0.9),
|
||||
// AppColors.of(context).text.withValues(alpha: 0.9),
|
||||
// fontSize: 18.0,
|
||||
// fontWeight: FontWeight.w500,
|
||||
// ),
|
||||
|
||||
@@ -42,8 +42,10 @@ class NewGradesSurprise extends StatelessWidget {
|
||||
child: Container(
|
||||
decoration: BoxDecoration(boxShadow: [
|
||||
BoxShadow(
|
||||
color:
|
||||
Theme.of(context).colorScheme.secondary.withOpacity(.5),
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.secondary
|
||||
.withValues(alpha: .5),
|
||||
blurRadius: 18.0,
|
||||
)
|
||||
]),
|
||||
@@ -59,7 +61,8 @@ class NewGradesSurprise extends StatelessWidget {
|
||||
width: 85,
|
||||
height: 15,
|
||||
decoration: BoxDecoration(
|
||||
color: AppColors.of(context).text.withOpacity(.85),
|
||||
color:
|
||||
AppColors.of(context).text.withValues(alpha: .85),
|
||||
borderRadius: BorderRadius.circular(8.0),
|
||||
),
|
||||
),
|
||||
@@ -78,7 +81,8 @@ class NewGradesSurprise extends StatelessWidget {
|
||||
width: 125,
|
||||
height: 10,
|
||||
decoration: BoxDecoration(
|
||||
color: AppColors.of(context).text.withOpacity(.45),
|
||||
color:
|
||||
AppColors.of(context).text.withValues(alpha: .45),
|
||||
borderRadius: BorderRadius.circular(8.0),
|
||||
),
|
||||
),
|
||||
@@ -97,7 +101,8 @@ class NewGradesSurprise extends StatelessWidget {
|
||||
width: 25,
|
||||
height: 25,
|
||||
decoration: BoxDecoration(
|
||||
color: AppColors.of(context).text.withOpacity(.45),
|
||||
color:
|
||||
AppColors.of(context).text.withValues(alpha: .45),
|
||||
borderRadius: BorderRadius.circular(25.0),
|
||||
),
|
||||
),
|
||||
@@ -110,7 +115,9 @@ class NewGradesSurprise extends StatelessWidget {
|
||||
style: TextStyle(
|
||||
shadows: [
|
||||
Shadow(
|
||||
color: AppColors.of(context).text.withOpacity(.2),
|
||||
color: AppColors.of(context)
|
||||
.text
|
||||
.withValues(alpha: .2),
|
||||
offset: const Offset(2, 2),
|
||||
)
|
||||
],
|
||||
@@ -119,7 +126,7 @@ class NewGradesSurprise extends StatelessWidget {
|
||||
text: "x",
|
||||
style: TextStyle(
|
||||
fontSize: 20.0,
|
||||
color: AppColors.of(context).text.withOpacity(.5),
|
||||
color: AppColors.of(context).text.withValues(alpha: .5),
|
||||
fontWeight: FontWeight.w800,
|
||||
),
|
||||
)
|
||||
@@ -127,7 +134,7 @@ class NewGradesSurprise extends StatelessWidget {
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.w700,
|
||||
fontSize: 28.0,
|
||||
color: AppColors.of(context).text.withOpacity(.75),
|
||||
color: AppColors.of(context).text.withValues(alpha: .75),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -134,9 +134,12 @@ class _SurpriseGradeState extends State<SurpriseGrade>
|
||||
return FadeTransition(
|
||||
opacity: _revealAnimFade,
|
||||
child: Material(
|
||||
color: Colors.black.withOpacity(.75),
|
||||
color: Colors.black.withValues(alpha: .75),
|
||||
child: Container(
|
||||
color: Theme.of(context).colorScheme.secondary.withOpacity(.05),
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.secondary
|
||||
.withValues(alpha: .05),
|
||||
child: Container(
|
||||
decoration: const BoxDecoration(
|
||||
gradient: RadialGradient(
|
||||
@@ -223,12 +226,13 @@ class _SurpriseGradeState extends State<SurpriseGrade>
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 32.0, vertical: 20.0),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white.withOpacity(.3),
|
||||
color: Colors.white
|
||||
.withValues(alpha: .3),
|
||||
borderRadius:
|
||||
BorderRadius.circular(24.0),
|
||||
border: Border.all(
|
||||
color: Colors.black
|
||||
.withOpacity(.3),
|
||||
.withValues(alpha: .3),
|
||||
width: 1.0),
|
||||
),
|
||||
child: Row(
|
||||
@@ -264,7 +268,8 @@ class _SurpriseGradeState extends State<SurpriseGrade>
|
||||
.capital(),
|
||||
style: TextStyle(
|
||||
color: Colors.white
|
||||
.withOpacity(.8),
|
||||
.withValues(
|
||||
alpha: .8),
|
||||
fontWeight:
|
||||
FontWeight.bold,
|
||||
fontSize: 24.0,
|
||||
@@ -285,7 +290,8 @@ class _SurpriseGradeState extends State<SurpriseGrade>
|
||||
"${widget.grade.value.weight}%",
|
||||
style: TextStyle(
|
||||
color: Colors.white
|
||||
.withOpacity(.7),
|
||||
.withValues(
|
||||
alpha: .7),
|
||||
fontWeight:
|
||||
FontWeight.w600,
|
||||
fontSize: 20.0,
|
||||
@@ -326,7 +332,7 @@ class _SurpriseGradeState extends State<SurpriseGrade>
|
||||
child: Text(
|
||||
"open_subtitle".i18n,
|
||||
style: TextStyle(
|
||||
color: Colors.white.withOpacity(.8),
|
||||
color: Colors.white.withValues(alpha: .8),
|
||||
fontWeight: FontWeight.w600,
|
||||
fontSize: 24.0,
|
||||
),
|
||||
@@ -383,7 +389,7 @@ class _SurpriseGradeState extends State<SurpriseGrade>
|
||||
context: context,
|
||||
value:
|
||||
widget.grade.value.value)
|
||||
.withOpacity(.5),
|
||||
.withValues(alpha: .5),
|
||||
blurRadius: 24.0,
|
||||
),
|
||||
Shadow(
|
||||
@@ -391,7 +397,7 @@ class _SurpriseGradeState extends State<SurpriseGrade>
|
||||
context: context,
|
||||
value:
|
||||
widget.grade.value.value)
|
||||
.withOpacity(.3),
|
||||
.withValues(alpha: .3),
|
||||
offset: const Offset(-3, -3),
|
||||
),
|
||||
],
|
||||
|
||||
@@ -38,7 +38,7 @@ class HomeworkTile extends StatelessWidget {
|
||||
child: censored
|
||||
? Container(
|
||||
decoration: BoxDecoration(
|
||||
color: AppColors.of(context).text.withOpacity(.55),
|
||||
color: AppColors.of(context).text.withValues(alpha: .55),
|
||||
borderRadius: BorderRadius.circular(60.0),
|
||||
),
|
||||
)
|
||||
@@ -48,7 +48,7 @@ class HomeworkTile extends StatelessWidget {
|
||||
SubjectIcon.resolveVariant(
|
||||
subject: homework.subject, context: context),
|
||||
size: 28.0,
|
||||
color: AppColors.of(context).text.withOpacity(.75),
|
||||
color: AppColors.of(context).text.withValues(alpha: .75),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -59,7 +59,7 @@ class HomeworkTile extends StatelessWidget {
|
||||
width: 160,
|
||||
height: 15,
|
||||
decoration: BoxDecoration(
|
||||
color: AppColors.of(context).text.withOpacity(.85),
|
||||
color: AppColors.of(context).text.withValues(alpha: .85),
|
||||
borderRadius: BorderRadius.circular(8.0),
|
||||
),
|
||||
),
|
||||
@@ -83,7 +83,7 @@ class HomeworkTile extends StatelessWidget {
|
||||
width: 100,
|
||||
height: 10,
|
||||
decoration: BoxDecoration(
|
||||
color: AppColors.of(context).text.withOpacity(.45),
|
||||
color: AppColors.of(context).text.withValues(alpha: .45),
|
||||
borderRadius: BorderRadius.circular(8.0),
|
||||
),
|
||||
),
|
||||
@@ -100,13 +100,13 @@ class HomeworkTile extends StatelessWidget {
|
||||
width: 15,
|
||||
height: 15,
|
||||
decoration: BoxDecoration(
|
||||
color: AppColors.of(context).text.withOpacity(.45),
|
||||
color: AppColors.of(context).text.withValues(alpha: .45),
|
||||
borderRadius: BorderRadius.circular(8.0),
|
||||
),
|
||||
)
|
||||
: Icon(
|
||||
FeatherIcons.home,
|
||||
color: AppColors.of(context).text.withOpacity(.75),
|
||||
color: AppColors.of(context).text.withValues(alpha: .75),
|
||||
),
|
||||
minLeadingWidth: 0,
|
||||
),
|
||||
|
||||
@@ -320,7 +320,7 @@ class TimetableLessonPopup extends StatelessWidget {
|
||||
color: ColorsUtils()
|
||||
.fade(context, Theme.of(context).colorScheme.secondary,
|
||||
darkenAmount: 0.1, lightenAmount: 0.1)
|
||||
.withOpacity(0.33),
|
||||
.withValues(alpha: 0.33),
|
||||
width: MediaQuery.of(context).size.width,
|
||||
),
|
||||
Container(
|
||||
@@ -333,10 +333,10 @@ class TimetableLessonPopup extends StatelessWidget {
|
||||
Theme.of(context).scaffoldBackgroundColor,
|
||||
Theme.of(context)
|
||||
.scaffoldBackgroundColor
|
||||
.withOpacity(0.1),
|
||||
.withValues(alpha: 0.1),
|
||||
Theme.of(context)
|
||||
.scaffoldBackgroundColor
|
||||
.withOpacity(0.1),
|
||||
.withValues(alpha: 0.1),
|
||||
Theme.of(context).scaffoldBackgroundColor,
|
||||
],
|
||||
stops: const [0.0, 0.3, 0.6, 0.95],
|
||||
@@ -373,7 +373,7 @@ class TimetableLessonPopup extends StatelessWidget {
|
||||
.fade(context,
|
||||
Theme.of(context).colorScheme.secondary,
|
||||
darkenAmount: 0.1, lightenAmount: 0.1)
|
||||
.withOpacity(0.33),
|
||||
.withValues(alpha: 0.33),
|
||||
borderRadius: BorderRadius.circular(
|
||||
2.0,
|
||||
),
|
||||
@@ -395,7 +395,7 @@ class TimetableLessonPopup extends StatelessWidget {
|
||||
Theme.of(context).colorScheme.secondary,
|
||||
amount: 0.1,
|
||||
)
|
||||
.withOpacity(0.9),
|
||||
.withValues(alpha: 0.9),
|
||||
width: 1.5,
|
||||
padding: 10.0,
|
||||
icon: Icon(
|
||||
@@ -407,7 +407,7 @@ class TimetableLessonPopup extends StatelessWidget {
|
||||
Theme.of(context).colorScheme.secondary,
|
||||
amount: 0.1,
|
||||
)
|
||||
.withOpacity(0.8),
|
||||
.withValues(alpha: 0.8),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -434,7 +434,7 @@ class TimetableLessonPopup extends StatelessWidget {
|
||||
style: TextStyle(
|
||||
color: AppColors.of(context)
|
||||
.text
|
||||
.withOpacity(0.85),
|
||||
.withValues(alpha: 0.85),
|
||||
fontSize: 14.0,
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
@@ -450,7 +450,7 @@ class TimetableLessonPopup extends StatelessWidget {
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.tertiary
|
||||
.withOpacity(.15),
|
||||
.withValues(alpha: .15),
|
||||
borderRadius: BorderRadius.circular(10.0),
|
||||
),
|
||||
child: Text(
|
||||
@@ -463,7 +463,7 @@ class TimetableLessonPopup extends StatelessWidget {
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.secondary
|
||||
.withOpacity(.9),
|
||||
.withValues(alpha: .9),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -505,7 +505,9 @@ class TimetableLessonPopup extends StatelessWidget {
|
||||
: lesson.substituteTeacher!.name)) ??
|
||||
'',
|
||||
style: TextStyle(
|
||||
color: AppColors.of(context).text.withOpacity(0.9),
|
||||
color: AppColors.of(context)
|
||||
.text
|
||||
.withValues(alpha: 0.9),
|
||||
fontSize: 14.0,
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
@@ -534,8 +536,9 @@ class TimetableLessonPopup extends StatelessWidget {
|
||||
Text(
|
||||
lesson.description,
|
||||
style: TextStyle(
|
||||
color:
|
||||
AppColors.of(context).text.withOpacity(0.9),
|
||||
color: AppColors.of(context)
|
||||
.text
|
||||
.withValues(alpha: 0.9),
|
||||
fontSize: 14.0,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
@@ -564,7 +567,9 @@ class TimetableLessonPopup extends StatelessWidget {
|
||||
Text(
|
||||
'${'year_index'.i18n}: ${lesson.lessonYearIndex ?? '?'}',
|
||||
style: TextStyle(
|
||||
color: AppColors.of(context).text.withOpacity(0.9),
|
||||
color: AppColors.of(context)
|
||||
.text
|
||||
.withValues(alpha: 0.9),
|
||||
fontSize: 14.0,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
@@ -607,7 +612,7 @@ class TimetableLessonPopup extends StatelessWidget {
|
||||
style: TextStyle(
|
||||
color: AppColors.of(context)
|
||||
.text
|
||||
.withOpacity(0.9),
|
||||
.withValues(alpha: 0.9),
|
||||
fontSize: 16.0,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
@@ -622,7 +627,7 @@ class TimetableLessonPopup extends StatelessWidget {
|
||||
style: TextStyle(
|
||||
color: AppColors.of(context)
|
||||
.text
|
||||
.withOpacity(0.85),
|
||||
.withValues(alpha: 0.85),
|
||||
fontSize: 14.0,
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
@@ -665,7 +670,7 @@ class TimetableLessonPopup extends StatelessWidget {
|
||||
// 'view_subject'.i18n,
|
||||
// style: TextStyle(
|
||||
// color:
|
||||
// AppColors.of(context).text.withOpacity(0.9),
|
||||
// AppColors.of(context).text.withValues(alpha: 0.9),
|
||||
// fontSize: 18.0,
|
||||
// fontWeight: FontWeight.w500,
|
||||
// ),
|
||||
|
||||
@@ -91,7 +91,10 @@ class MessageViewTile extends StatelessWidget {
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(16.0),
|
||||
border: Border.all(
|
||||
color: Theme.of(context).colorScheme.secondary.withOpacity(.25),
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.secondary
|
||||
.withValues(alpha: .25),
|
||||
width: 1.0,
|
||||
),
|
||||
),
|
||||
@@ -122,7 +125,7 @@ class MessageViewTile extends StatelessWidget {
|
||||
.textTheme
|
||||
.bodySmall
|
||||
?.color
|
||||
?.withOpacity(0.6),
|
||||
?.withValues(alpha: 0.6),
|
||||
),
|
||||
overflow: TextOverflow.ellipsis,
|
||||
maxLines: 1,
|
||||
|
||||
@@ -23,7 +23,7 @@ class MissedExamTile extends StatelessWidget {
|
||||
height: 36,
|
||||
child: Icon(
|
||||
FeatherIcons.slash,
|
||||
color: AppColors.of(context).red.withOpacity(.75),
|
||||
color: AppColors.of(context).red.withValues(alpha: .75),
|
||||
size: 28.0,
|
||||
)),
|
||||
title: Text("missed_exams"
|
||||
|
||||
@@ -50,7 +50,7 @@ class MissedExamViewTile extends StatelessWidget {
|
||||
leading: Icon(
|
||||
SubjectIcon.resolveVariant(
|
||||
subject: lesson.subject, context: context),
|
||||
color: AppColors.of(context).text.withOpacity(.8),
|
||||
color: AppColors.of(context).text.withValues(alpha: .8),
|
||||
size: 32.0,
|
||||
),
|
||||
title: Text(
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -81,7 +81,7 @@ class TickTileState extends State<TickTile> {
|
||||
fontSize: 15.5,
|
||||
decoration: isTicked ? TextDecoration.lineThrough : null,
|
||||
color: isTicked
|
||||
? AppColors.of(context).text.withOpacity(0.5)
|
||||
? AppColors.of(context).text.withValues(alpha: 0.5)
|
||||
: null,
|
||||
),
|
||||
),
|
||||
@@ -97,7 +97,7 @@ class TickTileState extends State<TickTile> {
|
||||
fontWeight: FontWeight.w500,
|
||||
fontSize: 12.0,
|
||||
color: isTicked
|
||||
? AppColors.of(context).text.withOpacity(0.5)
|
||||
? AppColors.of(context).text.withValues(alpha: 0.5)
|
||||
: null,
|
||||
),
|
||||
)
|
||||
|
||||
@@ -54,7 +54,8 @@ class UpdateViewState extends State<UpdateView> {
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.w600,
|
||||
fontSize: 16.0,
|
||||
color: AppColors.of(context).text.withOpacity(0.6),
|
||||
color:
|
||||
AppColors.of(context).text.withValues(alpha: 0.6),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user