@@ -28,7 +28,7 @@ class TimerProgressClock extends StatelessWidget {
2828 size: Size .square (dimension),
2929 painter: _TimerClockPainter (
3030 progress: progress,
31- bgColor: Theme .of (context).colorScheme.primary.withOpacity ( 0.05 ),
31+ bgColor: Theme .of (context).colorScheme.primary.withValues (alpha : 0.05 ),
3232 fillColor: Theme .of (context).colorScheme.primary,
3333 notchColor: Theme .of (context).colorScheme.primary,
3434 needleColor: Theme .of (context).colorScheme.error,
@@ -63,7 +63,7 @@ class _TimerClockPainter extends CustomPainter {
6363
6464 // Draw the notches around the timer
6565 Paint smallNotchPaint = Paint ()
66- ..color = notchColor.withOpacity ( 0.4 )
66+ ..color = notchColor.withValues (alpha : 0.4 )
6767 ..style = PaintingStyle .stroke
6868 ..strokeCap = StrokeCap .round
6969 ..strokeWidth = 2 ;
@@ -133,7 +133,7 @@ class _TimerClockPainter extends CustomPainter {
133133 radius * 0.2 ,
134134 Paint ()
135135 ..maskFilter = const MaskFilter .blur (BlurStyle .normal, 20 )
136- ..color = Colors .black.withOpacity ( 0.2 ),
136+ ..color = Colors .black.withValues (alpha : 0.2 ),
137137 );
138138
139139 /// Draw needle holder foreground cap circle
0 commit comments