Christoph 67a5fd25de
LocationItem: group departures by line (#1295)
* group departures by line if more than one line depart from given stop

* code cleanup

* preselect line with nextDeparture

* add horizontal divider to improve legibility

* change LineFilterChip styling

* sort by lineType, then by lineName, animateScrollIntoView

* Show departure in minutes on single tap

also:
- replace `remember(time)` with `key(time)` where applicable to
  keep "in ... minutes" up to date
- only animate lineFilterChips into view once per card composition
- show old list for up to two lines
- disable departure list `onLongPress`
- ditch `detectDragGestures` since it does not do anything anyway...
  somehow scrolling the departure list will also scroll the search bar.

* set containerColor to secondary in lineFilterChip to improve legibility for white-ish primary colors

* More color rigamarole

* OCD code tweaks

* Don't use extension functions

* Split LocationItem into multiple subcomponents

* Adjust line colors

* Always use filter chips view for departures

* Limit departures to 8 per line, make list not scrollable

* Adjust spacing

* Add transition

* Improve line sorting

* Fix line chip spacing

* detectTabGestures -> combinedClickable

---------

Co-authored-by: MM20 <15646950+MM2-0@users.noreply.github.com>
2025-04-01 18:02:29 +02:00
..
2022-12-13 17:37:26 +01:00