Skip to content

Commit

Permalink
Don't show section title for broadcast when there is no items to make it
Browse files Browse the repository at this point in the history
consistent with the two others sections
  • Loading branch information
julien4215 committed Jan 2, 2025
1 parent 84abbae commit 39e63b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/src/view/watch/watch_tab_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,9 @@ class _BroadcastWidget extends ConsumerWidget {
Widget build(BuildContext context, WidgetRef ref) {
return broadcastList.when(
data: (data) {
if (data.active.isEmpty && data.past.isEmpty) {
return const SizedBox.shrink();
}
return ListSection(
hasLeading: true,
header: Text(context.l10n.broadcastBroadcasts),
Expand Down

0 comments on commit 39e63b4

Please sign in to comment.