Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / maps / src / main / java / com / vayunmathur / maps / ui / LayersButton.kt
LayersButton.kt18 lines · 643 BRaw
| 1 | package com.vayunmathur.maps.ui |
| 2 | |
| 3 | import androidx.compose.runtime.Composable |
| 4 | import androidx.compose.ui.Modifier |
| 5 | import com.vayunmathur.library.ui.IconStyle |
| 6 | import com.vayunmathur.library.ui.SmallFloatingActionButton |
| 7 | |
| 8 | /** |
| 9 | * Minimal map-layers entry point in the browse FAB stack. For P2 this is just |
| 10 | * the button surface; the full layer-toggle sheet (satellite / traffic / |
| 11 | * (satellite / traffic / transit) lands in P6, which wires [onClick] to open it. |
| 12 | */ |
| 13 | @Composable |
| 14 | fun LayersButton(onClick: () -> Unit, modifier: Modifier = Modifier) { |
| 15 | SmallFloatingActionButton(onClick = onClick, modifier = modifier) { |
| 16 | IconStyle() |
| 17 | } |
| 18 | } |