refactor(empty-state): 空状态支持内容居中

This commit is contained in:
Zhou Weidong committed 2026-11-02 14:44:38 +08:00
1 parent 59fbd33059
commit 7463d3ee26
8 files changed
+131 -80

No files matched your search

+3 -3
View File
@@ -69,7 +69,7 @@ void main() {
semantics.dispose();
});
testWidgets('should_render_compact_dimensions_for_embedded_empty_state', (
testWidgets('should_keep_standard_icon_size_in_compact_empty_state', (
tester,
) async {
await _pump(
@@ -83,7 +83,7 @@ void main() {
expect(
tester.getSize(find.byKey(const Key('empty-state-icon'))),
const Size(44, 44),
const Size(72, 72),
);
expect(find.byType(DecoratedBox), findsNothing);
expect(
@@ -97,7 +97,7 @@ void main() {
tester
.widget<Padding>(find.byKey(const Key('empty-state-padding')))
.padding,
const EdgeInsets.symmetric(horizontal: 16, vertical: 16),
const EdgeInsets.symmetric(horizontal: 16, vertical: 4),
);
expect(find.byKey(const Key('empty-state-action')), findsNothing);
});