style: 统一全站深色视觉

This commit is contained in:
Zhou Weidong committed 2026-10-22 22:01:36 +08:00
1 parent 86aa7e0f4f
commit 37e35f4b47
24 files changed
+134 -130

No files matched your search

+4 -6
View File
@@ -28,7 +28,7 @@ void main() {
final title = tester.widget<Text>(find.byKey(const Key('subpage-title')));
expect(title.style?.fontSize, 18);
expect(title.style?.fontWeight, FontWeight.w800);
expect(title.style?.color, AppColors.onSurface);
expect(title.style?.color, AppColors.textPrimary);
final back = tester.getRect(find.byKey(const Key('sample-back')));
final titleRect = tester.getRect(find.byKey(const Key('subpage-title')));
expect(titleRect.left - back.right, closeTo(12, 0.5));
@@ -38,8 +38,8 @@ void main() {
matching: find.byType(Material),
),
);
expect(surface.color, AppColors.card);
expect((surface.shape! as CircleBorder).side.color, AppColors.border);
expect(surface.color, AppColors.transparent);
expect((surface.shape! as CircleBorder).side, BorderSide.none);
final shadow =
tester
.widget<DecoratedBox>(
@@ -47,9 +47,7 @@ void main() {
)
.decoration
as BoxDecoration;
expect(shadow.boxShadow!.single.color, AppColors.shadowSubtle);
expect(shadow.boxShadow!.single.blurRadius, 8);
expect(shadow.boxShadow!.single.offset, const Offset(0, 2));
expect(shadow.boxShadow, isEmpty);
});
testWidgets('should_use_64_height_when_subtitle_exists', (tester) async {