Make compact Dock persistent and support week swipes
This commit is contained in:
@@ -8,9 +8,7 @@ import 'navigation_test.dart' show uiController;
|
||||
|
||||
void main() {
|
||||
setUpAll(tzdata.initializeTimeZones);
|
||||
testWidgets('three icon tabs and vertical scroll hide and restore Dock', (
|
||||
tester,
|
||||
) async {
|
||||
testWidgets('three tabs remain reachable while pages scroll', (tester) async {
|
||||
tester.view.physicalSize = const Size(390, 844);
|
||||
tester.view.devicePixelRatio = 1;
|
||||
addTearDown(tester.view.resetPhysicalSize);
|
||||
@@ -30,7 +28,7 @@ void main() {
|
||||
expect(find.bySemanticsLabel('考试'), findsOneWidget);
|
||||
await tester.drag(find.text('周三'), const Offset(0, -200));
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.bySemanticsLabel('考试').hitTestable(), findsNothing);
|
||||
expect(find.bySemanticsLabel('考试').hitTestable(), findsOneWidget);
|
||||
await tester.drag(find.byType(ListView).first, const Offset(0, 100));
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.bySemanticsLabel('考试').hitTestable(), findsOneWidget);
|
||||
|
||||
Reference in New Issue
Block a user