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

@@ -401,10 +401,8 @@ class SettingsHelper {
width: 12.0,
height: 12.0,
decoration: BoxDecoration(
color: Theme.of(context)
.colorScheme
.secondary
.withOpacity((index + 1) / (vibrationTitle.length + 1)),
color: Theme.of(context).colorScheme.secondary.withValues(
alpha: (index + 1) / (vibrationTitle.length + 1)),
shape: BoxShape.circle,
),
),
@@ -448,7 +446,7 @@ class SettingsHelper {
// width: 175.0,
// decoration: BoxDecoration(
// borderRadius: BorderRadius.circular(12.0),
// color: AppColors.of(context).text.withOpacity(.25),
// color: AppColors.of(context).text.withValues(alpha: .25),
// ),
// ),
// );
@@ -745,7 +743,7 @@ class _BellDelaySettingState extends State<BellDelaySetting>
style: TextStyle(
fontSize: 12.0,
fontWeight: FontWeight.w500,
color: AppColors.of(context).text.withOpacity(.75))),
color: AppColors.of(context).text.withValues(alpha: .75))),
Padding(
padding: const EdgeInsets.only(bottom: 12.0, top: 6.0),
child: Column(