Skip to content

Commit

Permalink
Changed hasContentPredicate
Browse files Browse the repository at this point in the history
  • Loading branch information
rubuy-74 committed Aug 31, 2023
1 parent d8a32e6 commit 990dc6a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion uni/lib/view/home/widgets/bus_stop_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ class BusStopCard extends GenericCard {
)
],
),
hasContentPredicate: busProvider.configuredBusStops.isNotEmpty,
hasContentPredicate:
busProvider.configuredBusStops.values.toList().any(
(stopInfo) => stopInfo.trips.isNotEmpty,
),
onNullContent: Container(
padding: const EdgeInsets.all(8),
child: Row(
Expand Down

0 comments on commit 990dc6a

Please sign in to comment.