diff --git a/lib/widgets/tv_spotlight_background.dart b/lib/widgets/tv_spotlight_background.dart index 52c22d9a..6e97d20f 100644 --- a/lib/widgets/tv_spotlight_background.dart +++ b/lib/widgets/tv_spotlight_background.dart @@ -47,7 +47,6 @@ class TvSpotlightBackground extends StatelessWidget { @override Widget build(BuildContext context) { final media = item; - final colorScheme = Theme.of(context).colorScheme; final bgColor = Theme.of(context).scaffoldBackgroundColor; return AnimatedSwitcher( @@ -89,7 +88,7 @@ class TvSpotlightBackground extends StatelessWidget { child: LayoutBuilder( builder: (context, constraints) { if (!constraints.hasBoundedHeight || constraints.maxHeight <= 0 || constraints.maxWidth <= 0) { - return Align(alignment: Alignment.bottomLeft, child: _buildInfo(context, media, colorScheme)); + return Align(alignment: Alignment.bottomLeft, child: _buildInfo(context, media)); } return Align( @@ -97,7 +96,7 @@ class TvSpotlightBackground extends StatelessWidget { child: FittedBox( fit: BoxFit.scaleDown, alignment: Alignment.bottomLeft, - child: SizedBox(width: constraints.maxWidth, child: _buildInfo(context, media, colorScheme)), + child: SizedBox(width: constraints.maxWidth, child: _buildInfo(context, media)), ), ); }, @@ -151,7 +150,7 @@ class TvSpotlightBackground extends StatelessWidget { ); } - Widget _buildInfo(BuildContext context, MediaItem media, ColorScheme colorScheme) { + Widget _buildInfo(BuildContext context, MediaItem media) { final scale = _scale(context); final shouldHideSpoiler = hideSpoilers && media.shouldHideSpoiler; final summary = shouldHideSpoiler ? null : media.summary; diff --git a/windows/CMakeLists.txt b/windows/CMakeLists.txt index a679c5d8..8ef1a05f 100644 --- a/windows/CMakeLists.txt +++ b/windows/CMakeLists.txt @@ -116,6 +116,14 @@ add_subdirectory("runner") # them to the application. include(flutter/generated_plugins.cmake) +if(TARGET os_media_controls_plugin) + # MSVC 14.51 makes C++/WinRT's experimental coroutine include a hard error. + target_compile_definitions( + os_media_controls_plugin + PRIVATE _SILENCE_EXPERIMENTAL_COROUTINE_DEPRECATION_WARNINGS + ) +endif() + # === Installation === # Support files are copied into place next to the executable, so that it can