Skip to content

Commit 8a92a7c

Browse files
committed
Fixed dart lint issues.
1 parent e971bdd commit 8a92a7c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

lib/src/helpers/adaptive_controls.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ class AdaptiveControls extends StatelessWidget {
2323
backgroundColor: Color.fromRGBO(41, 41, 41, 0.7),
2424
iconColor: Color.fromARGB(255, 200, 200, 200),
2525
);
26-
default:
27-
return const MaterialControls();
2826
}
2927
}
3028
}

lib/src/material/material_controls.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ class _MaterialControlsState extends State<MaterialControls>
470470
text: '/ ${formatDuration(duration)}',
471471
style: TextStyle(
472472
fontSize: 14.0,
473-
color: Colors.white.withOpacity(.75),
473+
color: Colors.white.withValues(alpha: .75),
474474
fontWeight: FontWeight.normal,
475475
),
476476
)
@@ -682,8 +682,9 @@ class _MaterialControlsState extends State<MaterialControls>
682682
playedColor: Theme.of(context).colorScheme.secondary,
683683
handleColor: Theme.of(context).colorScheme.secondary,
684684
bufferedColor:
685-
Theme.of(context).colorScheme.surface.withOpacity(0.5),
686-
backgroundColor: Theme.of(context).disabledColor.withOpacity(.5),
685+
Theme.of(context).colorScheme.surface.withValues(alpha: 0.5),
686+
backgroundColor:
687+
Theme.of(context).disabledColor.withValues(alpha: .5),
687688
),
688689
draggableProgressBar: chewieController.draggableProgressBar,
689690
),

lib/src/material/material_desktop_controls.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,9 @@ class _MaterialDesktopControlsState extends State<MaterialDesktopControls>
591591
playedColor: Theme.of(context).colorScheme.secondary,
592592
handleColor: Theme.of(context).colorScheme.secondary,
593593
bufferedColor:
594-
Theme.of(context).colorScheme.surface.withOpacity(0.5),
595-
backgroundColor: Theme.of(context).disabledColor.withOpacity(.5),
594+
Theme.of(context).colorScheme.surface.withValues(alpha: 0.5),
595+
backgroundColor:
596+
Theme.of(context).disabledColor.withValues(alpha: 0.5),
596597
),
597598
draggableProgressBar: chewieController.draggableProgressBar,
598599
),

0 commit comments

Comments
 (0)