shared(ui): add material-free NearbyList composable; reuse NearbyEntryRow + subtitleFor; no material deps

This commit is contained in:
2025-09-12 19:36:08 +02:00
parent fab3c2c506
commit 5e5aa2def3
5 changed files with 117 additions and 81 deletions

View File

@@ -1,10 +1,10 @@
package app.klottr.nearby // [NY] Delad formatterare för Nearby-vy
package app.klottr.nearby // Delad formatterare för Nearby-vy
import app.klottr.util.FoundStore // För lagerkonstanter (WIKI, DM, FORNSOK, KLOTTER)
import app.klottr.nearby.NearbyEntryShared // Vår delade radmodell
// Bygg undertext: "<Lager-namn> • <avstånd> m"
fun subtitleFor(entry: NearbyEntryShared): String = buildString { // [NY]
fun subtitleFor(entry: NearbyEntryShared): String = buildString { //
append(
when (entry.layer) {
FoundStore.LAYER_WIKI -> "Wikipedia"