perf(tv): reduced visual-effects tier for low-end devices

This commit is contained in:
edde746
2026-06-12 06:30:38 +02:00
parent ad3cc6b986
commit 2b34f4a9d7
25 changed files with 1043 additions and 425 deletions
+8 -1
View File
@@ -182,8 +182,15 @@ void main() {
: desiredSpotlightBottom;
expect(spotlightBackground.contentBottom, closeTo(expectedSpotlightBottom, 0.001));
// The rail no longer receives the bleed via constructor (a per-flip param
// would rebuild the whole rail); its bleed layer reads the scope's
// sideNavigationWidth itself. Assert the rendered bleed position instead.
final browseRail = tester.widget<TvBrowseRail>(find.byType(TvBrowseRail));
expect(browseRail.backgroundBleedLeft, targetSidebarOffset);
expect(browseRail.backgroundBleedLeft, isNull);
final railBleedPositions = tester
.widgetList<Positioned>(find.descendant(of: find.byType(TvBrowseRail), matching: find.byType(Positioned)))
.where((p) => p.left == -targetSidebarOffset);
expect(railBleedPositions, isNotEmpty, reason: 'rail bleed layer positions at -sideNavigationWidth');
final backgroundPosition = tester.widget<Positioned>(
find.ancestor(of: find.byType(TvSpotlightBackground), matching: find.byType(Positioned)).first,