|
|
@@ -54,7 +54,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
|
|
size: 28,
|
|
|
),
|
|
|
style: IconButton.styleFrom(
|
|
|
- backgroundColor: ZenColors.black.withOpacity(0.3),
|
|
|
+ backgroundColor: ZenColors.black.withValues(alpha: 0.3),
|
|
|
shape: const CircleBorder(),
|
|
|
),
|
|
|
),
|
|
|
@@ -197,10 +197,10 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
|
|
margin: const EdgeInsets.only(top: 12),
|
|
|
padding: const EdgeInsets.all(16),
|
|
|
decoration: BoxDecoration(
|
|
|
- color: ZenColors.uiElements.withOpacity(0.3),
|
|
|
+ color: ZenColors.uiElements.withValues(alpha: 0.3),
|
|
|
borderRadius: BorderRadius.circular(12),
|
|
|
border: Border.all(
|
|
|
- color: ZenColors.uiElements.withOpacity(0.2),
|
|
|
+ color: ZenColors.uiElements.withValues(alpha: 0.2),
|
|
|
width: 1,
|
|
|
),
|
|
|
),
|
|
|
@@ -239,9 +239,9 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
|
|
value: value,
|
|
|
onChanged: onChanged,
|
|
|
activeColor: ZenColors.buttonBackground,
|
|
|
- activeTrackColor: ZenColors.buttonBackground.withOpacity(0.3),
|
|
|
+ activeTrackColor: ZenColors.buttonBackground.withValues(alpha: 0.3),
|
|
|
inactiveThumbColor: ZenColors.mutedText,
|
|
|
- inactiveTrackColor: ZenColors.mutedText.withOpacity(0.2),
|
|
|
+ inactiveTrackColor: ZenColors.mutedText.withValues(alpha: 0.2),
|
|
|
),
|
|
|
],
|
|
|
),
|
|
|
@@ -257,7 +257,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
|
|
return Container(
|
|
|
margin: const EdgeInsets.only(top: 12),
|
|
|
child: Material(
|
|
|
- color: ZenColors.uiElements.withOpacity(0.3),
|
|
|
+ color: ZenColors.uiElements.withValues(alpha: 0.3),
|
|
|
borderRadius: BorderRadius.circular(12),
|
|
|
child: InkWell(
|
|
|
onTap: onTap,
|
|
|
@@ -267,7 +267,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
|
|
decoration: BoxDecoration(
|
|
|
borderRadius: BorderRadius.circular(12),
|
|
|
border: Border.all(
|
|
|
- color: ZenColors.uiElements.withOpacity(0.2),
|
|
|
+ color: ZenColors.uiElements.withValues(alpha: 0.2),
|
|
|
width: 1,
|
|
|
),
|
|
|
),
|
|
|
@@ -429,10 +429,10 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
|
|
margin: const EdgeInsets.only(top: 8),
|
|
|
padding: const EdgeInsets.all(16),
|
|
|
decoration: BoxDecoration(
|
|
|
- color: ZenColors.uiElements.withOpacity(0.3),
|
|
|
+ color: ZenColors.uiElements.withValues(alpha: 0.3),
|
|
|
borderRadius: BorderRadius.circular(12),
|
|
|
border: Border.all(
|
|
|
- color: ZenColors.uiElements.withOpacity(0.2),
|
|
|
+ color: ZenColors.uiElements.withValues(alpha: 0.2),
|
|
|
width: 1,
|
|
|
),
|
|
|
),
|
|
|
@@ -465,7 +465,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
|
|
divisions: 10,
|
|
|
label: '${(value * 100).round()}%',
|
|
|
activeColor: ZenColors.buttonBackground,
|
|
|
- inactiveColor: ZenColors.mutedText.withOpacity(0.2),
|
|
|
+ inactiveColor: ZenColors.mutedText.withValues(alpha: 0.2),
|
|
|
),
|
|
|
],
|
|
|
),
|