@@ -58,30 +58,24 @@ class _DashboardPageState extends State<DashboardPage> {
58
58
return ListView (
59
59
padding: const EdgeInsets .all (AppSpacing .lg),
60
60
children: [
61
- Row (
61
+ Wrap (
62
+ spacing: AppSpacing .lg,
63
+ runSpacing: AppSpacing .lg,
62
64
children: [
63
- Expanded (
64
- child: _SummaryCard (
65
- icon: Icons .article_outlined,
66
- title: l10n.totalHeadlines,
67
- value: summary.headlineCount.toString (),
68
- ),
65
+ _SummaryCard (
66
+ icon: Icons .article_outlined,
67
+ title: l10n.totalHeadlines,
68
+ value: summary.headlineCount.toString (),
69
69
),
70
- const SizedBox (width: AppSpacing .lg),
71
- Expanded (
72
- child: _SummaryCard (
73
- icon: Icons .category_outlined,
74
- title: l10n.totalCategories,
75
- value: summary.categoryCount.toString (),
76
- ),
70
+ _SummaryCard (
71
+ icon: Icons .category_outlined,
72
+ title: l10n.totalCategories,
73
+ value: summary.categoryCount.toString (),
77
74
),
78
- const SizedBox (width: AppSpacing .lg),
79
- Expanded (
80
- child: _SummaryCard (
81
- icon: Icons .source_outlined,
82
- title: l10n.totalSources,
83
- value: summary.sourceCount.toString (),
84
- ),
75
+ _SummaryCard (
76
+ icon: Icons .source_outlined,
77
+ title: l10n.totalSources,
78
+ value: summary.sourceCount.toString (),
85
79
),
86
80
],
87
81
),
@@ -100,7 +94,9 @@ class _DashboardPageState extends State<DashboardPage> {
100
94
flex: 1 ,
101
95
child: Column (
102
96
children: [
103
- _SystemStatusCard (status: appConfig.appOperationalStatus),
97
+ _SystemStatusCard (
98
+ status: appConfig.appOperationalStatus,
99
+ ),
104
100
const SizedBox (height: AppSpacing .lg),
105
101
const _QuickActionsCard (),
106
102
],
@@ -269,8 +265,9 @@ class _RecentHeadlinesCard extends StatelessWidget {
269
265
child: Center (
270
266
child: Text (
271
267
l10n.noRecentHeadlines,
272
- style: theme.textTheme.bodyMedium
273
- ? .copyWith (color: theme.colorScheme.onSurfaceVariant),
268
+ style: theme.textTheme.bodyMedium? .copyWith (
269
+ color: theme.colorScheme.onSurfaceVariant,
270
+ ),
274
271
),
275
272
),
276
273
)
0 commit comments