fix(ci): unblock analyzer and windows build
This commit is contained in:
@@ -47,7 +47,6 @@ class TvSpotlightBackground extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final media = item;
|
final media = item;
|
||||||
final colorScheme = Theme.of(context).colorScheme;
|
|
||||||
final bgColor = Theme.of(context).scaffoldBackgroundColor;
|
final bgColor = Theme.of(context).scaffoldBackgroundColor;
|
||||||
|
|
||||||
return AnimatedSwitcher(
|
return AnimatedSwitcher(
|
||||||
@@ -89,7 +88,7 @@ class TvSpotlightBackground extends StatelessWidget {
|
|||||||
child: LayoutBuilder(
|
child: LayoutBuilder(
|
||||||
builder: (context, constraints) {
|
builder: (context, constraints) {
|
||||||
if (!constraints.hasBoundedHeight || constraints.maxHeight <= 0 || constraints.maxWidth <= 0) {
|
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(
|
return Align(
|
||||||
@@ -97,7 +96,7 @@ class TvSpotlightBackground extends StatelessWidget {
|
|||||||
child: FittedBox(
|
child: FittedBox(
|
||||||
fit: BoxFit.scaleDown,
|
fit: BoxFit.scaleDown,
|
||||||
alignment: Alignment.bottomLeft,
|
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 scale = _scale(context);
|
||||||
final shouldHideSpoiler = hideSpoilers && media.shouldHideSpoiler;
|
final shouldHideSpoiler = hideSpoilers && media.shouldHideSpoiler;
|
||||||
final summary = shouldHideSpoiler ? null : media.summary;
|
final summary = shouldHideSpoiler ? null : media.summary;
|
||||||
|
|||||||
@@ -116,6 +116,14 @@ add_subdirectory("runner")
|
|||||||
# them to the application.
|
# them to the application.
|
||||||
include(flutter/generated_plugins.cmake)
|
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 ===
|
# === Installation ===
|
||||||
# Support files are copied into place next to the executable, so that it can
|
# Support files are copied into place next to the executable, so that it can
|
||||||
|
|||||||
Reference in New Issue
Block a user