feat(player): 更多面板按参考图重做
This commit is contained in:
1 parent
c06a67c4b0
commit
7fccd16750
3 files changed
+260
-131
No files matched your search
@@ -50,7 +50,7 @@ void main() {
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.byKey(const Key('player-more-quality-AUTO')), findsOneWidget);
|
||||
expect(find.byKey(const Key('player-more-offline')), findsOneWidget);
|
||||
await tester.tap(find.byKey(const Key('player-more-close')));
|
||||
await tester.tapAt(const Offset(10, 10));
|
||||
await tester.pumpAndSettle();
|
||||
expect(tester.takeException(), isNull);
|
||||
});
|
||||
@@ -290,7 +290,7 @@ void main() {
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.byKey(const Key('player-more-sheet')), findsOneWidget);
|
||||
await tester.tap(find.byKey(const Key('player-more-close')));
|
||||
await tester.tapAt(const Offset(10, 10));
|
||||
await tester.pumpAndSettle();
|
||||
// 长按弹更多不改播放状态,仍处于播放中。
|
||||
expect(find.byKey(const Key('player-play-toggle')), findsNothing);
|
||||
@@ -832,6 +832,7 @@ void main() {
|
||||
expect(find.byKey(const Key('player-more-offline')), findsOneWidget);
|
||||
expect(find.byKey(const Key('player-more-clear')), findsOneWidget);
|
||||
expect(find.byKey(const Key('player-more-drag-handle')), findsOneWidget);
|
||||
expect(find.byKey(const Key('player-more-close')), findsNothing);
|
||||
for (final removed in const [
|
||||
Key('player-more-not-interested'),
|
||||
Key('player-more-danmaku'),
|
||||
@@ -845,15 +846,27 @@ void main() {
|
||||
}
|
||||
expect(
|
||||
tester.getSize(find.byKey(const Key('player-more-speed-1.0'))).height,
|
||||
28,
|
||||
26,
|
||||
);
|
||||
expect(
|
||||
tester.getSize(find.byKey(const Key('player-more-speed-track'))).height,
|
||||
34,
|
||||
);
|
||||
expect(
|
||||
tester.getSize(find.byKey(const Key('player-more-speed-row'))).height,
|
||||
44,
|
||||
56,
|
||||
);
|
||||
expect(
|
||||
tester.getSize(find.byKey(const Key('player-more-quality-row'))).height,
|
||||
44,
|
||||
56,
|
||||
);
|
||||
expect(
|
||||
tester.getSize(find.byKey(const Key('player-more-clear'))).height,
|
||||
56,
|
||||
);
|
||||
expect(
|
||||
tester.getSize(find.byKey(const Key('player-more-offline'))).height,
|
||||
56,
|
||||
);
|
||||
expect(
|
||||
tester
|
||||
@@ -881,7 +894,7 @@ void main() {
|
||||
)
|
||||
.style
|
||||
?.fontSize,
|
||||
12,
|
||||
14,
|
||||
);
|
||||
await tester.ensureVisible(find.byKey(const Key('player-more-speed-1.5')));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
Reference in new issue
Block a user