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

@@ -35,12 +35,13 @@ class MenuCloudSyncSettings extends StatelessWidget {
// ),
title: Text(
"cloud_sync".i18n,
style: TextStyle(color: AppColors.of(context).text.withOpacity(0.3)),
style:
TextStyle(color: AppColors.of(context).text.withValues(alpha: 0.3)),
),
leading: Icon(
FeatherIcons.uploadCloud,
size: 22.0,
color: AppColors.of(context).text.withOpacity(0.25),
color: AppColors.of(context).text.withValues(alpha: 0.25),
),
borderRadius: borderRadius,
);
@@ -166,8 +167,9 @@ class CloudSyncSettingsScreenState extends State<CloudSyncSettingsScreen> {
title: Text(
"qwit_sign_in".i18n,
style: TextStyle(
color: AppColors.of(context).text.withOpacity(
settingsProvider.gradeOpeningFun ? .95 : .25),
color: AppColors.of(context).text.withValues(
alpha:
settingsProvider.gradeOpeningFun ? .95 : .25),
),
),
borderRadius: const BorderRadius.vertical(
@@ -235,8 +237,9 @@ class CloudSyncSettingsScreenState extends State<CloudSyncSettingsScreen> {
title: Text(
"sync_now".i18n,
style: TextStyle(
color: AppColors.of(context).text.withOpacity(
settingsProvider.gradeOpeningFun ? .95 : .25),
color: AppColors.of(context).text.withValues(
alpha:
settingsProvider.gradeOpeningFun ? .95 : .25),
),
),
borderRadius: const BorderRadius.vertical(

View File

@@ -111,7 +111,7 @@ class EditSubjectScreenState extends State<EditSubjectScreen> {
leading: Icon(
FeatherIcons.penTool,
size: 22.0,
color: AppColors.of(context).text.withOpacity(0.95),
color: AppColors.of(context).text.withValues(alpha: 0.95),
),
borderRadius: const BorderRadius.vertical(
top: Radius.circular(12.0),
@@ -134,7 +134,7 @@ class EditSubjectScreenState extends State<EditSubjectScreen> {
leading: Icon(
FeatherIcons.user,
size: 22.0,
color: AppColors.of(context).text.withOpacity(0.95),
color: AppColors.of(context).text.withValues(alpha: 0.95),
),
borderRadius: const BorderRadius.vertical(
top: Radius.circular(12.0),
@@ -157,13 +157,13 @@ class EditSubjectScreenState extends State<EditSubjectScreen> {
// title: Text(
// "rounding".i18n,
// style: TextStyle(
// color: AppColors.of(context).text.withOpacity(.95),
// color: AppColors.of(context).text.withValues(alpha: .95),
// ),
// ),
// leading: Icon(
// FeatherIcons.gitCommit,
// size: 22.0,
// color: AppColors.of(context).text.withOpacity(.95),
// color: AppColors.of(context).text.withValues(alpha: .95),
// ),
// trailing: Text(
// ((widget.subject.customRounding ??

View File

@@ -38,7 +38,7 @@ class MenuExtrasSettings extends StatelessWidget {
leading: Icon(
FeatherIcons.edit,
size: 22.0,
color: AppColors.of(context).text.withOpacity(0.95),
color: AppColors.of(context).text.withValues(alpha: 0.95),
),
trailing: Row(
mainAxisSize: MainAxisSize.min,
@@ -51,7 +51,7 @@ class MenuExtrasSettings extends StatelessWidget {
Icon(
FeatherIcons.chevronRight,
size: 22.0,
color: AppColors.of(context).text.withOpacity(0.95),
color: AppColors.of(context).text.withValues(alpha: 0.95),
)
],
),
@@ -126,15 +126,16 @@ class ExtrasSettingsScreenState extends State<ExtrasSettingsScreen> {
title: Text(
"surprise_grades".i18n,
style: TextStyle(
color: AppColors.of(context).text.withOpacity(
settingsProvider.gradeOpeningFun ? .95 : .25),
color: AppColors.of(context).text.withValues(
alpha:
settingsProvider.gradeOpeningFun ? .95 : .25),
),
),
leading: Icon(
FeatherIcons.gift,
size: 22.0,
color: AppColors.of(context).text.withOpacity(
settingsProvider.gradeOpeningFun ? .95 : .25),
color: AppColors.of(context).text.withValues(
alpha: settingsProvider.gradeOpeningFun ? .95 : .25),
),
trailing: Switch(
onChanged: (v) async {

View File

@@ -30,12 +30,12 @@ class MenuGeneralSettings extends StatelessWidget {
leading: Icon(
FeatherIcons.settings,
size: 22.0,
color: AppColors.of(context).text.withOpacity(0.95),
color: AppColors.of(context).text.withValues(alpha: 0.95),
),
trailing: Icon(
FeatherIcons.chevronRight,
size: 22.0,
color: AppColors.of(context).text.withOpacity(0.95),
color: AppColors.of(context).text.withValues(alpha: 0.95),
),
borderRadius: borderRadius,
);
@@ -94,8 +94,9 @@ class GeneralSettingsScreenState extends State<GeneralSettingsScreen> {
title: Text(
"bell_delay".i18n,
style: TextStyle(
color: AppColors.of(context).text.withOpacity(
settingsProvider.bellDelayEnabled ? .95 : .25),
color: AppColors.of(context).text.withValues(
alpha:
settingsProvider.bellDelayEnabled ? .95 : .25),
),
),
leading: Icon(
@@ -103,8 +104,8 @@ class GeneralSettingsScreenState extends State<GeneralSettingsScreen> {
? FeatherIcons.bell
: FeatherIcons.bellOff,
size: 22.0,
color: AppColors.of(context).text.withOpacity(
settingsProvider.bellDelayEnabled ? .95 : .25),
color: AppColors.of(context).text.withValues(
alpha: settingsProvider.bellDelayEnabled ? .95 : .25),
),
trailingDivider: true,
trailing: Switch(
@@ -133,13 +134,14 @@ class GeneralSettingsScreenState extends State<GeneralSettingsScreen> {
title: Text(
"rounding".i18n,
style: TextStyle(
color: AppColors.of(context).text.withOpacity(.95),
color:
AppColors.of(context).text.withValues(alpha: .95),
),
),
leading: Icon(
FeatherIcons.gitCommit,
size: 22.0,
color: AppColors.of(context).text.withOpacity(.95),
color: AppColors.of(context).text.withValues(alpha: .95),
),
trailing: Text(
(settingsProvider.rounding / 10).toStringAsFixed(1),
@@ -167,15 +169,15 @@ class GeneralSettingsScreenState extends State<GeneralSettingsScreen> {
title: Text(
"graph_class_avg".i18n,
style: TextStyle(
color: AppColors.of(context).text.withOpacity(
settingsProvider.graphClassAvg ? .95 : .25),
color: AppColors.of(context).text.withValues(
alpha: settingsProvider.graphClassAvg ? .95 : .25),
),
),
leading: Icon(
FeatherIcons.barChart,
size: 22.0,
color: AppColors.of(context).text.withOpacity(
settingsProvider.graphClassAvg ? .95 : .25),
color: AppColors.of(context).text.withValues(
alpha: settingsProvider.graphClassAvg ? .95 : .25),
),
trailing: Switch(
onChanged: (v) =>
@@ -203,13 +205,14 @@ class GeneralSettingsScreenState extends State<GeneralSettingsScreen> {
title: Text(
"startpage".i18n,
style: TextStyle(
color: AppColors.of(context).text.withOpacity(.95),
color:
AppColors.of(context).text.withValues(alpha: .95),
),
),
leading: Icon(
FeatherIcons.play,
size: 22.0,
color: AppColors.of(context).text.withOpacity(.95),
color: AppColors.of(context).text.withValues(alpha: .95),
),
trailing: Text(
startPageTitle.capital(),
@@ -235,13 +238,14 @@ class GeneralSettingsScreenState extends State<GeneralSettingsScreen> {
title: Text(
"language".i18n,
style: TextStyle(
color: AppColors.of(context).text.withOpacity(.95),
color:
AppColors.of(context).text.withValues(alpha: .95),
),
),
leading: Icon(
FeatherIcons.globe,
size: 22.0,
color: AppColors.of(context).text.withOpacity(.95),
color: AppColors.of(context).text.withValues(alpha: .95),
),
trailing: Text(
languageText,
@@ -267,13 +271,13 @@ class GeneralSettingsScreenState extends State<GeneralSettingsScreen> {
// title: Text(
// "vibrate".i18n,
// style: TextStyle(
// color: AppColors.of(context).text.withOpacity(.95),
// color: AppColors.of(context).text.withValues(alpha: .95),
// ),
// ),
// leading: Icon(
// FeatherIcons.radio,
// size: 22.0,
// color: AppColors.of(context).text.withOpacity(.95),
// color: AppColors.of(context).text.withValues(alpha: .95),
// ),
// trailing: Text(
// vibrateTitle,
@@ -301,8 +305,8 @@ class GeneralSettingsScreenState extends State<GeneralSettingsScreen> {
title: Text(
"show_breaks".i18n,
style: TextStyle(
color: AppColors.of(context).text.withOpacity(
settingsProvider.showBreaks ? .95 : .25),
color: AppColors.of(context).text.withValues(
alpha: settingsProvider.showBreaks ? .95 : .25),
),
),
leading: Icon(
@@ -310,9 +314,8 @@ class GeneralSettingsScreenState extends State<GeneralSettingsScreen> {
? FeatherIcons.eye
: FeatherIcons.eyeOff,
size: 22.0,
color: AppColors.of(context)
.text
.withOpacity(settingsProvider.showBreaks ? .95 : .25),
color: AppColors.of(context).text.withValues(
alpha: settingsProvider.showBreaks ? .95 : .25),
),
trailing: Switch(
onChanged: (v) => settingsProvider.update(showBreaks: v),
@@ -341,15 +344,15 @@ class GeneralSettingsScreenState extends State<GeneralSettingsScreen> {
title: Text(
"news".i18n,
style: TextStyle(
color: AppColors.of(context).text.withOpacity(
settingsProvider.newsEnabled ? .95 : .25),
color: AppColors.of(context).text.withValues(
alpha: settingsProvider.newsEnabled ? .95 : .25),
),
),
leading: Icon(
Icons.newspaper_outlined,
size: 22.0,
color: AppColors.of(context).text.withOpacity(
settingsProvider.newsEnabled ? .95 : .25),
color: AppColors.of(context).text.withValues(
alpha: settingsProvider.newsEnabled ? .95 : .25),
),
trailing: Switch(
onChanged: (v) => settingsProvider.update(newsEnabled: v),

View File

@@ -86,7 +86,7 @@ class GradeColorsSettingsScreenState extends State<GradeColorsSettingsScreen> {
color: Theme.of(context)
.colorScheme
.shadow
.withOpacity(.1),
.withValues(alpha: .1),
blurRadius: 10.0,
offset: const Offset(0, 5),
),
@@ -198,7 +198,7 @@ class GradeColorsSettingsScreenState extends State<GradeColorsSettingsScreen> {
: Theme.of(context)
.colorScheme
.secondary
.withOpacity(.2),
.withValues(alpha: .2),
width: 1.0,
),
borderRadius: BorderRadius.circular(50.0),
@@ -235,7 +235,7 @@ class GradeColorsSettingsScreenState extends State<GradeColorsSettingsScreen> {
: Theme.of(context)
.colorScheme
.secondary
.withOpacity(.2),
.withValues(alpha: .2),
width: 1.0,
),
borderRadius: BorderRadius.circular(50.0),
@@ -272,7 +272,7 @@ class GradeColorsSettingsScreenState extends State<GradeColorsSettingsScreen> {
: Theme.of(context)
.colorScheme
.secondary
.withOpacity(.2),
.withValues(alpha: .2),
width: 1.0,
),
borderRadius: BorderRadius.circular(50.0),
@@ -309,7 +309,7 @@ class GradeColorsSettingsScreenState extends State<GradeColorsSettingsScreen> {
: Theme.of(context)
.colorScheme
.secondary
.withOpacity(.2),
.withValues(alpha: .2),
width: 1.0,
),
borderRadius: BorderRadius.circular(50.0),
@@ -346,7 +346,7 @@ class GradeColorsSettingsScreenState extends State<GradeColorsSettingsScreen> {
: Theme.of(context)
.colorScheme
.secondary
.withOpacity(.2),
.withValues(alpha: .2),
width: 1.0,
),
borderRadius: BorderRadius.circular(50.0),

View File

@@ -42,18 +42,18 @@ class MenuPaintList extends StatelessWidget {
title: Text(
"own_paints".i18n,
style: TextStyle(
color: AppColors.of(context).text.withOpacity(.95),
color: AppColors.of(context).text.withValues(alpha: .95),
),
),
leading: Icon(
FeatherIcons.list,
size: 22.0,
color: AppColors.of(context).text.withOpacity(.95),
color: AppColors.of(context).text.withValues(alpha: .95),
),
trailing: Icon(
FeatherIcons.chevronRight,
size: 22.0,
color: AppColors.of(context).text.withOpacity(0.95),
color: AppColors.of(context).text.withValues(alpha: 0.95),
),
borderRadius: borderRadius,
);
@@ -117,13 +117,13 @@ class PaintListScreenState extends State<PaintListScreen>
Text(
t.displayName,
style: TextStyle(
color: AppColors.of(context).text.withOpacity(.95),
color: AppColors.of(context).text.withValues(alpha: .95),
),
),
Text(
t.nickname,
style: TextStyle(
color: AppColors.of(context).text.withOpacity(.75),
color: AppColors.of(context).text.withValues(alpha: .75),
),
),
],
@@ -219,13 +219,16 @@ class PaintListScreenState extends State<PaintListScreen>
title: Text(
"enter_id".i18n,
style: TextStyle(
color: AppColors.of(context).text.withOpacity(.95),
color: AppColors.of(context)
.text
.withValues(alpha: .95),
),
),
leading: Icon(
FeatherIcons.plus,
size: 22.0,
color: AppColors.of(context).text.withOpacity(.95),
color:
AppColors.of(context).text.withValues(alpha: .95),
),
borderRadius: const BorderRadius.vertical(
top: Radius.circular(12.0),
@@ -264,8 +267,9 @@ class PaintListScreenState extends State<PaintListScreen>
? settingsProvider.currentThemeDisplayName
: 'no_name'.i18n,
style: TextStyle(
color:
AppColors.of(context).text.withOpacity(.95),
color: AppColors.of(context)
.text
.withValues(alpha: .95),
),
),
Text(
@@ -273,8 +277,9 @@ class PaintListScreenState extends State<PaintListScreen>
? settingsProvider.currentThemeCreator
: 'Anonymous',
style: TextStyle(
color:
AppColors.of(context).text.withOpacity(.65),
color: AppColors.of(context)
.text
.withValues(alpha: .65),
fontSize: 15.0,
fontWeight: FontWeight.w500,
),
@@ -300,7 +305,7 @@ class PaintListScreenState extends State<PaintListScreen>
BoxShadow(
color: AppColors.of(context)
.text
.withOpacity(0.15),
.withValues(alpha: 0.15),
offset: const Offset(1, 2),
blurRadius: 3,
),
@@ -323,7 +328,7 @@ class PaintListScreenState extends State<PaintListScreen>
BoxShadow(
color: AppColors.of(context)
.text
.withOpacity(0.15),
.withValues(alpha: 0.15),
offset: const Offset(1, 2),
blurRadius: 3,
),
@@ -346,7 +351,7 @@ class PaintListScreenState extends State<PaintListScreen>
BoxShadow(
color: AppColors.of(context)
.text
.withOpacity(0.15),
.withValues(alpha: 0.15),
offset: const Offset(1, 2),
blurRadius: 3,
),

View File

@@ -52,12 +52,12 @@ class MenuPersonalizeSettings extends StatelessWidget {
leading: Icon(
Icons.palette_outlined,
size: 22.0,
color: AppColors.of(context).text.withOpacity(0.95),
color: AppColors.of(context).text.withValues(alpha: 0.95),
),
trailing: Icon(
FeatherIcons.chevronRight,
size: 22.0,
color: AppColors.of(context).text.withOpacity(0.95),
color: AppColors.of(context).text.withValues(alpha: 0.95),
),
borderRadius: borderRadius,
);
@@ -175,7 +175,7 @@ class PersonalizeSettingsScreenState extends State<PersonalizeSettingsScreen>
: s.subject.name.capital()) ??
'',
style: TextStyle(
color: AppColors.of(context).text.withOpacity(.95),
color: AppColors.of(context).text.withValues(alpha: .95),
fontStyle: settingsProvider.renamedSubjectsItalics
? FontStyle.italic
: FontStyle.normal,
@@ -187,7 +187,7 @@ class PersonalizeSettingsScreenState extends State<PersonalizeSettingsScreen>
: s.teacher.name.capital()) ??
'',
style: TextStyle(
color: AppColors.of(context).text.withOpacity(.85),
color: AppColors.of(context).text.withValues(alpha: .85),
fontWeight: FontWeight.w400,
fontSize: 15.0,
height: 1.2,
@@ -198,12 +198,12 @@ class PersonalizeSettingsScreenState extends State<PersonalizeSettingsScreen>
leading: Icon(
SubjectIcon.resolveVariant(context: context, subject: s.subject),
size: 22.0,
color: AppColors.of(context).text.withOpacity(.95),
color: AppColors.of(context).text.withValues(alpha: .95),
),
trailing: Icon(
FeatherIcons.chevronRight,
size: 22.0,
color: AppColors.of(context).text.withOpacity(0.95),
color: AppColors.of(context).text.withValues(alpha: 0.95),
),
borderRadius: BorderRadius.vertical(
top: Radius.circular(i == 0 ? 12.0 : 4.0),
@@ -242,7 +242,7 @@ class PersonalizeSettingsScreenState extends State<PersonalizeSettingsScreen>
// f,
// style: GoogleFonts.getFont(
// f,
// color: AppColors.of(context).text.withOpacity(.95),
// color: AppColors.of(context).text.withValues(alpha: .95),
// fontStyle: settingsProvider.renamedSubjectsItalics
// ? FontStyle.italic
// : FontStyle.normal,
@@ -252,7 +252,7 @@ class PersonalizeSettingsScreenState extends State<PersonalizeSettingsScreen>
// ? Icon(
// FeatherIcons.chevronRight,
// size: 22.0,
// color: AppColors.of(context).text.withOpacity(0.95),
// color: AppColors.of(context).text.withValues(alpha: 0.95),
// )
// : null,
// borderRadius: BorderRadius.circular(12.0),
@@ -324,7 +324,9 @@ class PersonalizeSettingsScreenState extends State<PersonalizeSettingsScreen>
leading: Icon(
FeatherIcons.sun,
size: 22.0,
color: AppColors.of(context).text.withOpacity(0.95),
color: AppColors.of(context)
.text
.withValues(alpha: 0.95),
),
trailing: Text(
themeModeText,
@@ -354,13 +356,16 @@ class PersonalizeSettingsScreenState extends State<PersonalizeSettingsScreen>
title: Text(
"color".i18n,
style: TextStyle(
color: AppColors.of(context).text.withOpacity(.95),
color: AppColors.of(context)
.text
.withValues(alpha: .95),
),
),
leading: Icon(
FeatherIcons.droplet,
size: 22.0,
color: AppColors.of(context).text.withOpacity(.95),
color:
AppColors.of(context).text.withValues(alpha: .95),
),
trailing: Container(
width: 12.0,
@@ -388,15 +393,15 @@ class PersonalizeSettingsScreenState extends State<PersonalizeSettingsScreen>
title: Text(
"new_colors".i18n,
style: TextStyle(
color: AppColors.of(context).text.withOpacity(
settingsProvider.newColors ? .95 : .25),
color: AppColors.of(context).text.withValues(
alpha: settingsProvider.newColors ? .95 : .25),
),
),
leading: Icon(
Icons.flare_outlined,
size: 22.0,
color: AppColors.of(context).text.withOpacity(
settingsProvider.newColors ? .95 : .25),
color: AppColors.of(context).text.withValues(
alpha: settingsProvider.newColors ? .95 : .25),
),
trailing: Switch(
onChanged: (v) async {
@@ -437,15 +442,16 @@ class PersonalizeSettingsScreenState extends State<PersonalizeSettingsScreen>
title: Text(
"shadow_effect".i18n,
style: TextStyle(
color: AppColors.of(context).text.withOpacity(
settingsProvider.shadowEffect ? .95 : .25),
color: AppColors.of(context).text.withValues(
alpha:
settingsProvider.shadowEffect ? .95 : .25),
),
),
leading: Icon(
FeatherIcons.moon,
size: 22.0,
color: AppColors.of(context).text.withOpacity(
settingsProvider.shadowEffect ? .95 : .25),
color: AppColors.of(context).text.withValues(
alpha: settingsProvider.shadowEffect ? .95 : .25),
),
trailing: Switch(
onChanged: (v) async {
@@ -480,15 +486,15 @@ class PersonalizeSettingsScreenState extends State<PersonalizeSettingsScreen>
title: Text(
"new_popups".i18n,
style: TextStyle(
color: AppColors.of(context).text.withOpacity(
settingsProvider.newPopups ? .95 : .25),
color: AppColors.of(context).text.withValues(
alpha: settingsProvider.newPopups ? .95 : .25),
),
),
leading: Icon(
FeatherIcons.alertOctagon,
size: 22.0,
color: AppColors.of(context).text.withOpacity(
settingsProvider.newPopups ? .95 : .25),
color: AppColors.of(context).text.withValues(
alpha: settingsProvider.newPopups ? .95 : .25),
),
trailing: Switch(
onChanged: (v) async {
@@ -519,13 +525,13 @@ class PersonalizeSettingsScreenState extends State<PersonalizeSettingsScreen>
// title: Text(
// "icon_pack".i18n,
// style: TextStyle(
// color: AppColors.of(context).text.withOpacity(.95),
// color: AppColors.of(context).text.withValues(alpha: .95),
// ),
// ),
// leading: Icon(
// FeatherIcons.grid,
// size: 22.0,
// color: AppColors.of(context).text.withOpacity(.95),
// color: AppColors.of(context).text.withValues(alpha: .95),
// ),
// trailing: Text(
// settingsProvider.iconPack.name.capital(),
@@ -558,13 +564,16 @@ class PersonalizeSettingsScreenState extends State<PersonalizeSettingsScreen>
title: Text(
"grade_colors".i18n,
style: TextStyle(
color: AppColors.of(context).text.withOpacity(.95),
color: AppColors.of(context)
.text
.withValues(alpha: .95),
),
),
leading: Icon(
FeatherIcons.star,
size: 22.0,
color: AppColors.of(context).text.withOpacity(.95),
color:
AppColors.of(context).text.withValues(alpha: .95),
),
trailing: Row(
mainAxisSize: MainAxisSize.min,
@@ -616,8 +625,8 @@ class PersonalizeSettingsScreenState extends State<PersonalizeSettingsScreen>
title: Text(
"rename_subjects".i18n,
style: TextStyle(
color: AppColors.of(context).text.withOpacity(
settingsProvider.renamedSubjectsEnabled
color: AppColors.of(context).text.withValues(
alpha: settingsProvider.renamedSubjectsEnabled
? .95
: .25),
),
@@ -625,8 +634,8 @@ class PersonalizeSettingsScreenState extends State<PersonalizeSettingsScreen>
leading: Icon(
Icons.school_outlined,
size: 22.0,
color: AppColors.of(context).text.withOpacity(
settingsProvider.renamedSubjectsEnabled
color: AppColors.of(context).text.withValues(
alpha: settingsProvider.renamedSubjectsEnabled
? .95
: .25),
),
@@ -675,8 +684,8 @@ class PersonalizeSettingsScreenState extends State<PersonalizeSettingsScreen>
title: Text(
"rename_teachers".i18n,
style: TextStyle(
color: AppColors.of(context).text.withOpacity(
settingsProvider.renamedTeachersEnabled
color: AppColors.of(context).text.withValues(
alpha: settingsProvider.renamedTeachersEnabled
? .95
: .25),
),
@@ -684,8 +693,8 @@ class PersonalizeSettingsScreenState extends State<PersonalizeSettingsScreen>
leading: Icon(
FeatherIcons.user,
size: 22.0,
color: AppColors.of(context).text.withOpacity(
settingsProvider.renamedTeachersEnabled
color: AppColors.of(context).text.withValues(
alpha: settingsProvider.renamedTeachersEnabled
? .95
: .25),
),
@@ -729,14 +738,17 @@ class PersonalizeSettingsScreenState extends State<PersonalizeSettingsScreen>
title: Text(
"live_activity_color".i18n,
style: TextStyle(
color:
AppColors.of(context).text.withOpacity(.95),
color: AppColors.of(context)
.text
.withValues(alpha: .95),
),
),
leading: Icon(
FeatherIcons.activity,
size: 22.0,
color: AppColors.of(context).text.withOpacity(.95),
color: AppColors.of(context)
.text
.withValues(alpha: .95),
),
trailing: Container(
margin: const EdgeInsets.only(left: 2.0),
@@ -855,7 +867,7 @@ class PersonalizeSettingsScreenState extends State<PersonalizeSettingsScreen>
style: TextStyle(
color: AppColors.of(context)
.text
.withOpacity(.95),
.withValues(alpha: .95),
),
),
leading: Icon(
@@ -863,7 +875,7 @@ class PersonalizeSettingsScreenState extends State<PersonalizeSettingsScreen>
size: 22.0,
color: AppColors.of(context)
.text
.withOpacity(.95),
.withValues(alpha: .95),
),
borderRadius: const BorderRadius.vertical(
top: Radius.circular(12.0),
@@ -1022,13 +1034,16 @@ class PersonalizeSettingsScreenState extends State<PersonalizeSettingsScreen>
title: Text(
"font_family".i18n,
style: TextStyle(
color: AppColors.of(context).text.withOpacity(.95),
color: AppColors.of(context)
.text
.withValues(alpha: .95),
),
),
leading: Icon(
FeatherIcons.type,
size: 22.0,
color: AppColors.of(context).text.withOpacity(.95),
color:
AppColors.of(context).text.withValues(alpha: .95),
),
trailing: Text(
settingsProvider.fontFamily != ''
@@ -1066,15 +1081,17 @@ class PersonalizeSettingsScreenState extends State<PersonalizeSettingsScreen>
title: Text(
"only_ch_title_font".i18n,
style: TextStyle(
color: AppColors.of(context).text.withOpacity(
settingsProvider.titleOnlyFont ? .95 : .25),
color: AppColors.of(context).text.withValues(
alpha:
settingsProvider.titleOnlyFont ? .95 : .25),
),
),
leading: Icon(
Icons.text_increase_rounded,
size: 22.0,
color: AppColors.of(context).text.withOpacity(
settingsProvider.titleOnlyFont ? .95 : .25),
color: AppColors.of(context).text.withValues(
alpha:
settingsProvider.titleOnlyFont ? .95 : .25),
),
trailing: Switch(
onChanged: (v) async {