Skip to content

Commit 9551b20

Browse files
authored
Merge pull request #701 from diegotori/flutter_3.7_fixes
Added Dart Analysis fixes due to Flutter 3.7.
2 parents 614061b + 9968f38 commit 9551b20

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

lib/src/material/material_controls.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ class _MaterialControlsState extends State<MaterialControls>
249249
AnimatedOpacity _buildBottomBar(
250250
BuildContext context,
251251
) {
252-
final iconColor = Theme.of(context).textTheme.button!.color;
252+
final iconColor = Theme.of(context).textTheme.labelLarge!.color;
253253

254254
return AnimatedOpacity(
255255
opacity: notifier.hideStuff ? 0.0 : 1.0,
@@ -607,7 +607,8 @@ class _MaterialControlsState extends State<MaterialControls>
607607
ChewieProgressColors(
608608
playedColor: Theme.of(context).colorScheme.secondary,
609609
handleColor: Theme.of(context).colorScheme.secondary,
610-
bufferedColor: Theme.of(context).backgroundColor.withOpacity(0.5),
610+
bufferedColor:
611+
Theme.of(context).colorScheme.background.withOpacity(0.5),
611612
backgroundColor: Theme.of(context).disabledColor.withOpacity(.5),
612613
),
613614
),

lib/src/material/material_desktop_controls.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ class _MaterialDesktopControlsState extends State<MaterialDesktopControls>
242242
AnimatedOpacity _buildBottomBar(
243243
BuildContext context,
244244
) {
245-
final iconColor = Theme.of(context).textTheme.button!.color;
245+
final iconColor = Theme.of(context).textTheme.labelLarge!.color;
246246

247247
return AnimatedOpacity(
248248
opacity: notifier.hideStuff ? 0.0 : 1.0,
@@ -586,7 +586,8 @@ class _MaterialDesktopControlsState extends State<MaterialDesktopControls>
586586
ChewieProgressColors(
587587
playedColor: Theme.of(context).colorScheme.secondary,
588588
handleColor: Theme.of(context).colorScheme.secondary,
589-
bufferedColor: Theme.of(context).backgroundColor.withOpacity(0.5),
589+
bufferedColor:
590+
Theme.of(context).colorScheme.background.withOpacity(0.5),
590591
backgroundColor: Theme.of(context).disabledColor.withOpacity(.5),
591592
),
592593
),

0 commit comments

Comments
 (0)