withOpacity() -> withValues()

This commit is contained in:
Ashita Prasad
2025-03-02 15:46:24 +05:30
parent af45fa0642
commit a55ec0308a
3 changed files with 4 additions and 4 deletions

View File

@ -65,8 +65,8 @@ class _VideoPreviewerState extends State<VideoPreviewer> {
final iconColor = Theme.of(context).iconTheme.color;
final progressBarColors = VideoProgressColors(
playedColor: iconColor!,
bufferedColor: iconColor.withOpacity(0.5),
backgroundColor: iconColor.withOpacity(0.3),
bufferedColor: iconColor.withValues(alpha: 0.5),
backgroundColor: iconColor.withValues(alpha: 0.3),
);
return Scaffold(
body: MouseRegion(