fix(player): 持久化竖滑播放画面层

This commit is contained in:
Zhou Weidong committed 2026-10-26 15:34:24 +08:00
1 parent 5dafc68775
commit 2a32dec183
5 files changed
+593 -101

No files matched your search

+13
View File
@@ -55,6 +55,19 @@ void main() {
pageViews.where((pageView) => pageView.scrollDirection == Axis.vertical),
hasLength(1),
);
expect(find.byKey(const Key('player-render-stack')), findsOneWidget);
final renderStackPageAncestors = tester.widgetList<PageView>(
find.ancestor(
of: find.byKey(const Key('player-render-stack')),
matching: find.byType(PageView),
),
);
expect(
renderStackPageAncestors.where(
(pageView) => pageView.scrollDirection == Axis.vertical,
),
isEmpty,
);
expect(tester.takeException(), isNull);
});