fixed deprecated warnings
This commit is contained in:
@@ -112,7 +112,7 @@ class GradesBodyState extends State<GradesBody> {
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: 20.0,
|
||||
color: Colors.white.withOpacity(0.98),
|
||||
color: Colors.white.withValues(alpha: 0.98),
|
||||
fontStyle: settings.renamedSubjectsItalics && subject.isRenamed
|
||||
? FontStyle.italic
|
||||
: null,
|
||||
@@ -145,7 +145,7 @@ class GradesBodyState extends State<GradesBody> {
|
||||
style: TextStyle(
|
||||
fontSize: 18.0,
|
||||
height: 2.0,
|
||||
color: Colors.white.withOpacity(0.5)),
|
||||
color: Colors.white.withValues(alpha: 0.5)),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -331,10 +331,10 @@ class GradesBodyState extends State<GradesBody> {
|
||||
horizontal: 16.0, vertical: 4.0),
|
||||
decoration: BoxDecoration(
|
||||
color: gradeColor(context: context, value: endYearAvg)
|
||||
.withOpacity(.2),
|
||||
.withValues(alpha: .2),
|
||||
border: Border.all(
|
||||
color: (gradeColor(context: context, value: endYearAvg))
|
||||
.withOpacity(0.0),
|
||||
.withValues(alpha: 0.0),
|
||||
width: 2.0,
|
||||
),
|
||||
borderRadius: BorderRadius.circular(45.0),
|
||||
|
||||
@@ -310,7 +310,7 @@ class LessonsBodyState extends State<LessonsBody> {
|
||||
style: TextStyle(
|
||||
fontSize: 18.0,
|
||||
height: 2.0,
|
||||
color: Colors.white.withOpacity(0.5)),
|
||||
color: Colors.white.withValues(alpha: 0.5)),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -98,7 +98,7 @@ class PersonalityBodyState extends State<PersonalityBody> {
|
||||
),
|
||||
style: ButtonStyle(
|
||||
backgroundColor: WidgetStateProperty.all(
|
||||
Colors.white.withOpacity(0.2)),
|
||||
Colors.white.withValues(alpha: 0.2)),
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
@@ -115,7 +115,7 @@ class PersonalityBodyState extends State<PersonalityBody> {
|
||||
),
|
||||
style: ButtonStyle(
|
||||
backgroundColor: WidgetStateProperty.all(
|
||||
Colors.white.withOpacity(0.2)),
|
||||
Colors.white.withValues(alpha: 0.2)),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
@@ -44,7 +44,7 @@ class StartBodyState extends State<StartBody> {
|
||||
context,
|
||||
useRootNavigator: true,
|
||||
builder: (context) => SlidingSheetDialog(
|
||||
color: Colors.black.withOpacity(0.99),
|
||||
color: Colors.black.withValues(alpha: 0.99),
|
||||
duration: const Duration(milliseconds: 400),
|
||||
scrollSpec: const ScrollSpec.bouncingScroll(),
|
||||
snapSpec: const SnapSpec(
|
||||
@@ -84,7 +84,7 @@ class StartBodyState extends State<StartBody> {
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.w500,
|
||||
fontSize: 16.0,
|
||||
color: Colors.white.withOpacity(0.7),
|
||||
color: Colors.white.withValues(alpha: 0.7),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user