Skip to content

Commit 6295c6d

Browse files
committed
fix(headlines-search): update condition for displaying source description
- Change null check to empty string check for source description - Improve accuracy of displayed information in SourceItemWidget
1 parent ffbdfe8 commit 6295c6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/headlines-search/widgets/source_item_widget.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class SourceItemWidget extends StatelessWidget {
1414
Widget build(BuildContext context) {
1515
return ListTile(
1616
title: Text(source.name),
17-
subtitle: source.description != null
17+
subtitle: source.description.isNotEmpty
1818
? Text(
1919
source.description,
2020
maxLines: 2,

0 commit comments

Comments
 (0)