fix(player): 持久化竖滑播放画面层
This commit is contained in:
1 parent
5dafc68775
commit
2a32dec183
5 files changed
+593
-101
No files matched your search
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user