fix(ci): unblock analyzer and windows build

This commit is contained in:
edde746
2026-05-20 18:10:21 +02:00
parent c93a266722
commit 73735c5a00
2 changed files with 11 additions and 4 deletions
+3 -4
View File
@@ -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;
+8
View File
@@ -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