fixed deprecated warnings
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class ActionButton extends StatelessWidget {
|
||||
const ActionButton({super.key, required this.label, this.activeColor, this.onTap});
|
||||
const ActionButton(
|
||||
{super.key, required this.label, this.activeColor, this.onTap});
|
||||
|
||||
final Color? activeColor;
|
||||
final void Function()? onTap;
|
||||
@@ -19,7 +20,8 @@ class ActionButton extends StatelessWidget {
|
||||
curve: Curves.easeInOut,
|
||||
height: 32.0,
|
||||
decoration: BoxDecoration(
|
||||
color: (activeColor ?? Theme.of(context).colorScheme.secondary).withOpacity(0.25),
|
||||
color: (activeColor ?? Theme.of(context).colorScheme.secondary)
|
||||
.withValues(alpha: 0.25),
|
||||
borderRadius: BorderRadius.circular(6.0),
|
||||
),
|
||||
padding: const EdgeInsets.symmetric(vertical: 6.0, horizontal: 12.0),
|
||||
@@ -28,7 +30,11 @@ class ActionButton extends StatelessWidget {
|
||||
maxLines: 1,
|
||||
softWrap: false,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: TextStyle(fontSize: 15.0, fontWeight: FontWeight.w600, color: activeColor ?? Theme.of(context).colorScheme.secondary))),
|
||||
style: TextStyle(
|
||||
fontSize: 15.0,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: activeColor ??
|
||||
Theme.of(context).colorScheme.secondary))),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
@@ -21,7 +21,7 @@ class AverageDisplay extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
Color color = average == 0.0
|
||||
? AppColors.of(context).text.withOpacity(.8)
|
||||
? AppColors.of(context).text.withValues(alpha: .8)
|
||||
: gradeColor(context: context, value: average);
|
||||
|
||||
String averageText = average.toStringAsFixed(2);
|
||||
@@ -49,16 +49,18 @@ class AverageDisplay extends StatelessWidget {
|
||||
borderRadius:
|
||||
(border && dashed) ? null : BorderRadius.circular(45.0 * scale),
|
||||
border: border && !dashed
|
||||
? Border.fromBorderSide(
|
||||
BorderSide(color: color.withOpacity(.5), width: 1.0 * scale))
|
||||
? Border.fromBorderSide(BorderSide(
|
||||
color: color.withValues(alpha: .5), width: 1.0 * scale))
|
||||
: null,
|
||||
color: !border
|
||||
? color.withValues(alpha: average == 0.0 ? .15 : .25)
|
||||
: null,
|
||||
color: !border ? color.withOpacity(average == 0.0 ? .15 : .25) : null,
|
||||
),
|
||||
child: (border && dashed)
|
||||
? DottedBorder(
|
||||
strokeWidth: 1.0 * scale,
|
||||
padding: EdgeInsets.all(4.0 * scale),
|
||||
color: color.withOpacity(.5),
|
||||
color: color.withValues(alpha: .5),
|
||||
dashPattern: const [6, 6],
|
||||
radius: Radius.circular(45.0 * scale),
|
||||
borderType: BorderType.RRect,
|
||||
|
||||
@@ -25,7 +25,7 @@ class BottomCard extends StatelessWidget {
|
||||
margin: const EdgeInsets.only(top: 12.0, bottom: 4.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!,
|
||||
|
||||
@@ -38,7 +38,7 @@ class RoundedBottomSheet extends StatelessWidget {
|
||||
margin: const EdgeInsets.only(top: 12.0, bottom: 4.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!,
|
||||
|
||||
@@ -16,7 +16,7 @@ class BetaChip extends StatelessWidget {
|
||||
decoration: BoxDecoration(
|
||||
color: !disabled
|
||||
? Theme.of(context).colorScheme.secondary
|
||||
: AppColors.of(context).text.withOpacity(.25),
|
||||
: AppColors.of(context).text.withValues(alpha: .25),
|
||||
borderRadius: BorderRadius.circular(40),
|
||||
),
|
||||
child: Padding(
|
||||
@@ -28,7 +28,7 @@ class BetaChip extends StatelessWidget {
|
||||
style: TextStyle(
|
||||
fontSize: 10,
|
||||
color: disabled
|
||||
? AppColors.of(context).text.withOpacity(.5)
|
||||
? AppColors.of(context).text.withValues(alpha: .5)
|
||||
: Colors.white,
|
||||
fontWeight: FontWeight.w600,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
|
||||
@@ -11,8 +11,9 @@ class NewChip extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
decoration: BoxDecoration(
|
||||
color:
|
||||
disabled ? AppColors.of(context).text.withOpacity(.25) : Colors.red,
|
||||
color: disabled
|
||||
? AppColors.of(context).text.withValues(alpha: .25)
|
||||
: Colors.red,
|
||||
borderRadius: BorderRadius.circular(12.0),
|
||||
),
|
||||
padding:
|
||||
@@ -23,7 +24,7 @@ class NewChip extends StatelessWidget {
|
||||
Icon(
|
||||
Icons.hotel_class_rounded,
|
||||
color: disabled
|
||||
? AppColors.of(context).text.withOpacity(.5)
|
||||
? AppColors.of(context).text.withValues(alpha: .5)
|
||||
: Colors.white,
|
||||
size: 14.0,
|
||||
),
|
||||
@@ -32,7 +33,7 @@ class NewChip extends StatelessWidget {
|
||||
'new'.i18n,
|
||||
style: TextStyle(
|
||||
color: disabled
|
||||
? AppColors.of(context).text.withOpacity(.5)
|
||||
? AppColors.of(context).text.withValues(alpha: .5)
|
||||
: Colors.white,
|
||||
fontSize: 12.0,
|
||||
fontWeight: FontWeight.bold,
|
||||
|
||||
@@ -24,7 +24,7 @@ SnackBar CustomSnackBar({
|
||||
color: _backgroundColor,
|
||||
borderRadius: BorderRadius.circular(6.0),
|
||||
boxShadow: [
|
||||
BoxShadow(color: Colors.black.withOpacity(.15), blurRadius: 4.0)
|
||||
BoxShadow(color: Colors.black.withValues(alpha: .15), blurRadius: 4.0)
|
||||
],
|
||||
),
|
||||
padding: const EdgeInsets.all(12.0),
|
||||
|
||||
@@ -26,7 +26,7 @@ class Detail extends StatelessWidget {
|
||||
text: description,
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.w500,
|
||||
color: AppColors.of(context).text.withOpacity(0.85)),
|
||||
color: AppColors.of(context).text.withValues(alpha: 0.85)),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -34,7 +34,7 @@ class Empty extends StatelessWidget {
|
||||
style: TextStyle(
|
||||
fontSize: 32.0,
|
||||
fontWeight: FontWeight.w500,
|
||||
color: AppColors.of(context).text.withOpacity(.75)),
|
||||
color: AppColors.of(context).text.withValues(alpha: .75)),
|
||||
children: subtitle != null
|
||||
? [
|
||||
TextSpan(
|
||||
@@ -42,7 +42,9 @@ class Empty extends StatelessWidget {
|
||||
style: TextStyle(
|
||||
fontSize: 18.0,
|
||||
height: 2.0,
|
||||
color: AppColors.of(context).text.withOpacity(.5)))
|
||||
color: AppColors.of(context)
|
||||
.text
|
||||
.withValues(alpha: .5)))
|
||||
]
|
||||
: [],
|
||||
),
|
||||
|
||||
@@ -56,12 +56,12 @@ class _FilterBarState extends State<FilterBar> {
|
||||
),
|
||||
labelPadding: const EdgeInsets.symmetric(horizontal: 12, vertical: 3),
|
||||
labelColor: Theme.of(context).colorScheme.secondary,
|
||||
unselectedLabelColor: AppColors.of(context).text.withOpacity(0.65),
|
||||
unselectedLabelColor: AppColors.of(context).text.withValues(alpha: 0.65),
|
||||
// indicator
|
||||
indicatorSize: TabBarIndicatorSize.tab,
|
||||
indicatorPadding: const EdgeInsets.symmetric(vertical: 8.0),
|
||||
indicator: BoxDecoration(
|
||||
color: Theme.of(context).colorScheme.tertiary.withOpacity(.2),
|
||||
color: Theme.of(context).colorScheme.tertiary.withValues(alpha: .2),
|
||||
borderRadius: BorderRadius.circular(45.0),
|
||||
),
|
||||
overlayColor: WidgetStateProperty.all(const Color(0x00000000)),
|
||||
@@ -77,7 +77,7 @@ class _FilterBarState extends State<FilterBar> {
|
||||
width: e,
|
||||
height: 15,
|
||||
decoration: BoxDecoration(
|
||||
color: AppColors.of(context).text.withOpacity(.45),
|
||||
color: AppColors.of(context).text.withValues(alpha: .45),
|
||||
borderRadius: BorderRadius.circular(8.0),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -79,7 +79,7 @@ class HeroScrollViewState extends State<HeroScrollView> {
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(widget.icon,
|
||||
color: AppColors.of(context).text.withOpacity(.8)),
|
||||
color: AppColors.of(context).text.withValues(alpha: .8)),
|
||||
const SizedBox(width: 8.0),
|
||||
Expanded(
|
||||
child: Text(
|
||||
@@ -123,7 +123,7 @@ class HeroScrollViewState extends State<HeroScrollView> {
|
||||
Theme.of(context).colorScheme.secondary,
|
||||
amount: 0.1,
|
||||
)
|
||||
.withOpacity(0.4),
|
||||
.withValues(alpha: 0.4),
|
||||
width: MediaQuery.of(context).size.width,
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
@@ -135,10 +135,10 @@ class HeroScrollViewState extends State<HeroScrollView> {
|
||||
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, 0.98],
|
||||
@@ -164,7 +164,7 @@ class HeroScrollViewState extends State<HeroScrollView> {
|
||||
Theme.of(context).colorScheme.secondary,
|
||||
amount: 0.1,
|
||||
)
|
||||
.withOpacity(0.9),
|
||||
.withValues(alpha: 0.9),
|
||||
width: 1.5,
|
||||
padding: 12.0,
|
||||
icon: Icon(
|
||||
@@ -175,7 +175,7 @@ class HeroScrollViewState extends State<HeroScrollView> {
|
||||
Theme.of(context).colorScheme.secondary,
|
||||
amount: 0.1,
|
||||
)
|
||||
.withOpacity(0.8),
|
||||
.withValues(alpha: 0.8),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -192,7 +192,7 @@ class HeroScrollViewState extends State<HeroScrollView> {
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
fontSize: 26.0,
|
||||
color: AppColors.of(context).text.withOpacity(.8),
|
||||
color: AppColors.of(context).text.withValues(alpha: .8),
|
||||
fontStyle: widget.italic ? FontStyle.italic : null,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
|
||||
@@ -19,7 +19,8 @@ class MaterialActionButton extends StatelessWidget {
|
||||
return RawMaterialButton(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16.0),
|
||||
shape: const StadiumBorder(),
|
||||
fillColor: backgroundColor ?? AppColors.of(context).text.withOpacity(.15),
|
||||
fillColor:
|
||||
backgroundColor ?? AppColors.of(context).text.withValues(alpha: .15),
|
||||
elevation: 0,
|
||||
highlightElevation: 0,
|
||||
onPressed: onPressed,
|
||||
|
||||
@@ -24,7 +24,8 @@ class OutlinedRoundButton extends StatelessWidget {
|
||||
decoration: BoxDecoration(
|
||||
color: Theme.of(context).colorScheme.surface,
|
||||
border: Border.all(
|
||||
color: Theme.of(context).colorScheme.secondary.withOpacity(0.1),
|
||||
color:
|
||||
Theme.of(context).colorScheme.secondary.withValues(alpha: 0.1),
|
||||
width: 1.1,
|
||||
),
|
||||
borderRadius: BorderRadius.circular(8.0),
|
||||
|
||||
@@ -67,7 +67,7 @@ class PanelTitle extends StatelessWidget {
|
||||
child: DefaultTextStyle(
|
||||
style: Theme.of(context).textTheme.titleMedium!.copyWith(
|
||||
fontWeight: FontWeight.w600,
|
||||
color: AppColors.of(context).text.withOpacity(0.65)),
|
||||
color: AppColors.of(context).text.withValues(alpha: 0.65)),
|
||||
child: title,
|
||||
),
|
||||
);
|
||||
|
||||
@@ -23,18 +23,28 @@ class PanelActionButton extends StatelessWidget {
|
||||
padding: padding,
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(8.0),
|
||||
side: BorderSide(color: Theme.of(context).colorScheme.secondary.withOpacity(.6), width: 2),
|
||||
side: BorderSide(
|
||||
color:
|
||||
Theme.of(context).colorScheme.secondary.withValues(alpha: .6),
|
||||
width: 2),
|
||||
),
|
||||
child: ListTile(
|
||||
leading: leading != null
|
||||
? Theme(
|
||||
data: Theme.of(context).copyWith(iconTheme: IconThemeData(color: Theme.of(context).colorScheme.secondary)),
|
||||
data: Theme.of(context).copyWith(
|
||||
iconTheme: IconThemeData(
|
||||
color: Theme.of(context).colorScheme.secondary)),
|
||||
child: leading!,
|
||||
)
|
||||
: null,
|
||||
trailing: trailing,
|
||||
title: title != null
|
||||
? DefaultTextStyle(style: Theme.of(context).textTheme.titleMedium!.copyWith(fontWeight: FontWeight.w500, fontSize: 15.0), child: title!)
|
||||
? DefaultTextStyle(
|
||||
style: Theme.of(context)
|
||||
.textTheme
|
||||
.titleMedium!
|
||||
.copyWith(fontWeight: FontWeight.w500, fontSize: 15.0),
|
||||
child: title!)
|
||||
: null,
|
||||
contentPadding: EdgeInsets.zero,
|
||||
visualDensity: VisualDensity.compact,
|
||||
|
||||
@@ -36,8 +36,9 @@ class PanelButton extends StatelessWidget {
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: borderRadius ?? BorderRadius.circular(12.0)),
|
||||
fillColor: background
|
||||
? Colors.white.withOpacity(
|
||||
Theme.of(context).brightness == Brightness.light ? .35 : .2)
|
||||
? Colors.white.withValues(
|
||||
alpha:
|
||||
Theme.of(context).brightness == Brightness.light ? .35 : .2)
|
||||
: null,
|
||||
child: ListTile(
|
||||
leading: leading != null
|
||||
@@ -57,7 +58,7 @@ class PanelButton extends StatelessWidget {
|
||||
width: 2.0,
|
||||
height: 32.0,
|
||||
decoration: BoxDecoration(
|
||||
color: AppColors.of(context).text.withOpacity(.15),
|
||||
color: AppColors.of(context).text.withValues(alpha: .15),
|
||||
borderRadius: BorderRadius.circular(45.0),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -44,7 +44,7 @@ class _EmptyCardState extends State<EmptyCard> {
|
||||
if (Provider.of<SettingsProvider>(context, listen: false)
|
||||
.shadowEffect)
|
||||
BoxShadow(
|
||||
color: Colors.black.withOpacity(0.08),
|
||||
color: Colors.black.withValues(alpha: 0.08),
|
||||
offset: const Offset(0, 5),
|
||||
blurRadius: 20,
|
||||
spreadRadius: 10,
|
||||
@@ -52,7 +52,7 @@ class _EmptyCardState extends State<EmptyCard> {
|
||||
],
|
||||
),
|
||||
child: DottedBorder(
|
||||
color: Colors.black.withOpacity(0.9),
|
||||
color: Colors.black.withValues(alpha: 0.9),
|
||||
dashPattern: const [12, 12],
|
||||
padding:
|
||||
const EdgeInsets.only(top: 20, bottom: 20, left: 20, right: 20),
|
||||
@@ -60,7 +60,7 @@ class _EmptyCardState extends State<EmptyCard> {
|
||||
child: Text(
|
||||
widget.text,
|
||||
style: TextStyle(
|
||||
color: Colors.white.withOpacity(0.9),
|
||||
color: Colors.white.withValues(alpha: 0.9),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -301,7 +301,7 @@ class _PersonalityCardState extends State<PersonalityCard> {
|
||||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
height: 1.2,
|
||||
color: Colors.white.withOpacity(0.8),
|
||||
color: Colors.white.withValues(alpha: 0.8),
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 25),
|
||||
@@ -354,7 +354,7 @@ class _PersonalityCardState extends State<PersonalityCard> {
|
||||
borderRadius: const BorderRadius.all(Radius.circular(5)),
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: Colors.black.withOpacity(0.08),
|
||||
color: Colors.black.withValues(alpha: 0.08),
|
||||
offset: const Offset(0, 5),
|
||||
blurRadius: 20,
|
||||
spreadRadius: 10,
|
||||
@@ -362,7 +362,7 @@ class _PersonalityCardState extends State<PersonalityCard> {
|
||||
],
|
||||
),
|
||||
child: DottedBorder(
|
||||
color: Colors.black.withOpacity(0.9),
|
||||
color: Colors.black.withValues(alpha: 0.9),
|
||||
dashPattern: const [12, 12],
|
||||
padding:
|
||||
const EdgeInsets.only(top: 20, bottom: 20, left: 20, right: 20),
|
||||
|
||||
@@ -91,10 +91,10 @@ class _ProfileImageState extends State<ProfileImage> {
|
||||
clipBehavior: Clip.hardEdge,
|
||||
shape: const CircleBorder(),
|
||||
color: widget.name != null && widget.name! == 'Rendszerüzenet'
|
||||
? widget.backgroundColor?.withOpacity(0.8) ??
|
||||
AppColors.of(context).text.withOpacity(0.5)
|
||||
? widget.backgroundColor?.withValues(alpha: 0.8) ??
|
||||
AppColors.of(context).text.withValues(alpha: 0.5)
|
||||
: widget.backgroundColor ??
|
||||
AppColors.of(context).text.withOpacity(.15),
|
||||
AppColors.of(context).text.withValues(alpha: .15),
|
||||
child: InkWell(
|
||||
onTap: widget.onTap,
|
||||
onDoubleTap: widget.onDoubleTap,
|
||||
@@ -114,7 +114,7 @@ class _ProfileImageState extends State<ProfileImage> {
|
||||
width: 15,
|
||||
height: 15,
|
||||
decoration: BoxDecoration(
|
||||
color: color.withOpacity(.5),
|
||||
color: color.withValues(alpha: .5),
|
||||
borderRadius: BorderRadius.circular(8.0),
|
||||
),
|
||||
)
|
||||
@@ -206,7 +206,7 @@ class _ProfileImageState extends State<ProfileImage> {
|
||||
color: profilePicture != null
|
||||
? Colors.transparent
|
||||
: widget.backgroundColor ??
|
||||
AppColors.of(context).text.withOpacity(.15),
|
||||
AppColors.of(context).text.withValues(alpha: .15),
|
||||
child: AnimatedContainer(
|
||||
duration: const Duration(milliseconds: 200),
|
||||
height: widget.radius * 2,
|
||||
|
||||
@@ -2,7 +2,10 @@ import 'package:flutter/material.dart';
|
||||
|
||||
class ProgressBar extends StatelessWidget {
|
||||
const ProgressBar(
|
||||
{super.key, required this.value, this.backgroundColor, this.height = 8.0});
|
||||
{super.key,
|
||||
required this.value,
|
||||
this.backgroundColor,
|
||||
this.height = 8.0});
|
||||
|
||||
final double value;
|
||||
final Color? backgroundColor;
|
||||
@@ -16,8 +19,8 @@ class ProgressBar extends StatelessWidget {
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
color: Theme.of(context).brightness == Brightness.light
|
||||
? Colors.black.withOpacity(0.1)
|
||||
: Colors.white.withOpacity(0.1),
|
||||
? Colors.black.withValues(alpha: 0.1)
|
||||
: Colors.white.withValues(alpha: 0.1),
|
||||
borderRadius: BorderRadius.circular(45.0),
|
||||
),
|
||||
width: double.infinity,
|
||||
|
||||
@@ -19,7 +19,7 @@ class RoundBorderIcon extends StatelessWidget {
|
||||
decoration: BoxDecoration(
|
||||
border: Border.all(
|
||||
color: color ??
|
||||
Theme.of(context).colorScheme.secondary.withOpacity(0.25),
|
||||
Theme.of(context).colorScheme.secondary.withValues(alpha: 0.25),
|
||||
width: width),
|
||||
borderRadius: BorderRadius.circular(50.0),
|
||||
),
|
||||
|
||||
@@ -56,7 +56,7 @@ class SplittedPanel extends StatelessWidget {
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.secondary
|
||||
.withOpacity(.25),
|
||||
.withValues(alpha: .25),
|
||||
width: 1.0)
|
||||
: null,
|
||||
),
|
||||
@@ -121,7 +121,7 @@ class SplittedPanelTitle extends StatelessWidget {
|
||||
child: DefaultTextStyle(
|
||||
style: Theme.of(context).textTheme.titleMedium!.copyWith(
|
||||
fontWeight: FontWeight.w600,
|
||||
color: AppColors.of(context).text.withOpacity(0.65)),
|
||||
color: AppColors.of(context).text.withValues(alpha: 0.65)),
|
||||
child: title,
|
||||
),
|
||||
);
|
||||
|
||||
@@ -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