feat(app): 完善播放协议搜索与空状态

This commit is contained in:
Zhou Weidong committed 2026-10-23 12:38:47 +08:00
1 parent 671e0ce143
commit ef29fc5f15
85 files changed
+2976 -768

No files matched your search

+27
View File
@@ -183,6 +183,32 @@ void main() {
},
);
testWidgets(
'should_show_app_logo_lower_on_the_page_when_landing_opens',
(tester) async {
tester.view.physicalSize = const Size(390, 844);
tester.view.devicePixelRatio = 1;
addTearDown(tester.view.resetPhysicalSize);
addTearDown(tester.view.resetDevicePixelRatio);
await pumpAuthPage(tester, openEmail: false);
final image = tester.widget<Image>(
find.descendant(
of: find.byKey(const Key('auth-brand-logo')),
matching: find.byType(Image),
),
);
expect(
(image.image as AssetImage).assetName,
'assets/icon/fruitshorts.png',
);
expect(
tester.getTopLeft(find.byKey(const Key('auth-brand-logo'))).dy,
84,
);
},
);
testWidgets('should_render_40px_back_button_when_page_is_pushed', (
tester,
) async {
@@ -380,6 +406,7 @@ class _PendingAuthApi extends AuthApi {
required String password,
required String deviceId,
String platform = '',
String osVersion = '',
String appVersion = '',
}) async {
loginCalls++;