Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
dependencies ▾

Modern-Apps.git / maps / src / main / java / com / vayunmathur / maps / ui / LayersButton.kt

LayersButton.kt18 lines · 643 BRaw
1package com.vayunmathur.maps.ui
2
3import androidx.compose.runtime.Composable
4import androidx.compose.ui.Modifier
5import com.vayunmathur.library.ui.IconStyle
6import 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
14fun LayersButton(onClick: () -> Unit, modifier: Modifier = Modifier) {
15 SmallFloatingActionButton(onClick = onClick, modifier = modifier) {
16 IconStyle()
17 }
18}