style(empty): 放大空状态图标并降低亮度
This commit is contained in:
1 parent
f206977ad8
commit
44d3bcba18
2 files changed
+9
-10
No files matched your search
@@ -23,17 +23,16 @@ void main() {
|
||||
);
|
||||
|
||||
expect(find.byKey(const Key('empty-state-art')), findsNothing);
|
||||
expect(find.byKey(const Key('empty-state-art-inner')), findsNothing);
|
||||
expect(find.byKey(const Key('empty-state-icon')), findsOneWidget);
|
||||
expect(find.text('No stories'), findsOneWidget);
|
||||
expect(find.text('New content will appear here.'), findsOneWidget);
|
||||
expect(
|
||||
tester.getSize(find.byKey(const Key('empty-state-icon'))),
|
||||
const Size(48, 48),
|
||||
const Size(72, 72),
|
||||
);
|
||||
expect(
|
||||
tester.widget<Icon>(find.byKey(const Key('empty-state-icon'))).color,
|
||||
AppColors.blueSoft,
|
||||
AppColors.subtle,
|
||||
);
|
||||
expect(
|
||||
tester
|
||||
@@ -84,7 +83,7 @@ void main() {
|
||||
|
||||
expect(
|
||||
tester.getSize(find.byKey(const Key('empty-state-icon'))),
|
||||
const Size(32, 32),
|
||||
const Size(44, 44),
|
||||
);
|
||||
expect(find.byType(DecoratedBox), findsNothing);
|
||||
expect(
|
||||
@@ -111,7 +110,7 @@ void main() {
|
||||
);
|
||||
expect(
|
||||
tester.widget<Icon>(find.byKey(const Key('empty-state-icon'))).color,
|
||||
AppColors.blueSoft,
|
||||
AppColors.subtle,
|
||||
);
|
||||
|
||||
await _pump(
|
||||
@@ -121,7 +120,7 @@ void main() {
|
||||
);
|
||||
expect(
|
||||
tester.widget<Icon>(find.byKey(const Key('empty-state-icon'))).color,
|
||||
AppColors.blueSoft,
|
||||
AppColors.subtle,
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user