Skip to content

Commit

Permalink
Merge pull request #1828 from c3bryant/fix-shuttle-arrivals-icon
Browse files Browse the repository at this point in the history
Fix shuttle arrival icon when no shuttles en route
  • Loading branch information
c3bryant authored Sep 2, 2022
2 parents 543dc93 + 2f36076 commit 345b538
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/ui/shuttle/shuttle_display.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ class ShuttleDisplay extends StatelessWidget {

@override
Widget build(BuildContext context) {
// print("Building ${stop.name}");
print(arrivingShuttles);
if (arrivingShuttles == null) {
return Container(
width: double.infinity,
Expand Down Expand Up @@ -77,12 +75,12 @@ class ShuttleDisplay extends StatelessWidget {
CircleAvatar(
minRadius: 40,
backgroundColor: HexColor(arrivingShuttles!.isEmpty
? "#B74093"
? "#CCCCCC"
: arrivingShuttles![0].routeColor!),
foregroundColor: Colors.black,
child: Text(
arrivingShuttles!.isEmpty
? "S"
? "?"
: arrivingShuttles![0].routeName![0],
style: TextStyle(fontSize: 50),
),
Expand Down

0 comments on commit 345b538

Please sign in to comment.