@@ -114,8 +114,10 @@ class _HeadlinesSearchViewState extends State<_HeadlinesSearchView> {
114
114
horizontal: AppSpacing .xs, // Minimal horizontal padding
115
115
),
116
116
),
117
- // Style the dropdown text to match AppBar title
118
- style: appBarTheme.titleTextStyle ?? theme.textTheme.titleLarge,
117
+ // Style the dropdown text to match AppBar title - Adjusted
118
+ style: theme.textTheme.titleMedium? .copyWith (
119
+ color: appBarTheme.titleTextStyle? .color ?? colorScheme.onSurface,
120
+ ),
119
121
dropdownColor: colorScheme.surfaceContainerHighest, // Match theme
120
122
icon: Icon (
121
123
Icons .arrow_drop_down,
@@ -141,12 +143,10 @@ class _HeadlinesSearchViewState extends State<_HeadlinesSearchView> {
141
143
value: type,
142
144
child: Text (
143
145
displayLocalizedName,
144
- style: appBarTheme.titleTextStyle? .copyWith (
145
- color: colorScheme.onSurface,
146
- ) ??
147
- theme.textTheme.titleLarge? .copyWith (
148
- color: colorScheme.onSurface,
149
- ),
146
+ // Adjusted style for dropdown items
147
+ style: theme.textTheme.titleMedium? .copyWith (
148
+ color: colorScheme.onSurface,
149
+ ),
150
150
),
151
151
);
152
152
}).toList (),
@@ -168,9 +168,12 @@ class _HeadlinesSearchViewState extends State<_HeadlinesSearchView> {
168
168
style: appBarTheme.titleTextStyle ?? theme.textTheme.titleLarge,
169
169
decoration: InputDecoration (
170
170
hintText: _getHintTextForModelType (_selectedModelType, l10n),
171
- hintStyle: (appBarTheme.titleTextStyle ??
172
- theme.textTheme.titleLarge)
173
- ? .copyWith (color: colorScheme.onSurface.withAlpha (153 )),
171
+ // Adjusted hintStyle to use a smaller font
172
+ hintStyle: theme.textTheme.bodyMedium? .copyWith (
173
+ color: (appBarTheme.titleTextStyle? .color ??
174
+ colorScheme.onSurface)
175
+ .withAlpha (153 ),
176
+ ),
174
177
border: InputBorder .none,
175
178
filled: true ,
176
179
fillColor: colorScheme.surface.withAlpha (26 ),
@@ -207,7 +210,7 @@ class _HeadlinesSearchViewState extends State<_HeadlinesSearchView> {
207
210
builder: (context, state) {
208
211
return switch (state) {
209
212
HeadlinesSearchInitial () => InitialStateWidget (
210
- icon: Icons .search_off_rounded,
213
+ icon: Icons .search, // Changed icon
211
214
headline: l10n.headlinesSearchInitialHeadline,
212
215
subheadline: l10n.headlinesSearchInitialSubheadline,
213
216
),
@@ -238,15 +241,18 @@ class _HeadlinesSearchViewState extends State<_HeadlinesSearchView> {
238
241
message:
239
242
'${l10n .headlinesSearchNoResultsHeadline } for "${lastSearchTerm }" in ${resultsModelType .displayName .toLowerCase ()}.\n ${l10n .headlinesSearchNoResultsSubheadline }' ,
240
243
)
241
- : ListView .builder (
244
+ : ListView .separated (
242
245
controller: _scrollController,
246
+ padding: const EdgeInsets .all (AppSpacing .paddingMedium), // Add overall padding
243
247
itemCount:
244
248
hasMore ? results.length + 1 : results.length,
249
+ separatorBuilder: (context, index) =>
250
+ const SizedBox (height: AppSpacing .md), // Add separator
245
251
itemBuilder: (context, index) {
246
252
if (index >= results.length) {
247
253
return const Padding (
248
254
padding:
249
- EdgeInsets .all ( AppSpacing .paddingLarge),
255
+ EdgeInsets .symmetric (vertical : AppSpacing .lg), // Adjusted padding for loader
250
256
child:
251
257
Center (child: CircularProgressIndicator ()),
252
258
);
0 commit comments