Skip to content

Commit 8156ae5

Browse files
diegotoriprateekmedia
authored andcommitted
Fixed dart lint issues.
1 parent 744b1d3 commit 8156ae5

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
@@ -474,7 +474,7 @@ class _MaterialControlsState extends State<MaterialControls>
474474
text: '/ ${formatDuration(duration)}',
475475
style: TextStyle(
476476
fontSize: 14.0,
477-
color: Colors.white.withOpacity(.75),
477+
color: Colors.white.withValues(alpha: .75),
478478
fontWeight: FontWeight.normal,
479479
),
480480
)
@@ -687,8 +687,9 @@ class _MaterialControlsState extends State<MaterialControls>
687687
playedColor: Theme.of(context).colorScheme.secondary,
688688
handleColor: Theme.of(context).colorScheme.secondary,
689689
bufferedColor:
690-
Theme.of(context).colorScheme.surface.withOpacity(0.5),
691-
backgroundColor: Theme.of(context).disabledColor.withOpacity(.5),
690+
Theme.of(context).colorScheme.surface.withValues(alpha: 0.5),
691+
backgroundColor:
692+
Theme.of(context).disabledColor.withValues(alpha: .5),
692693
),
693694
draggableProgressBar: chewieController.draggableProgressBar,
694695
),

lib/src/material/material_desktop_controls.dart

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

0 commit comments

Comments
 (0)