feat: location button, and abstracting extInsets to common code
This commit is contained in:
parent
cdbf1970ec
commit
e428883d01
9 changed files with 178 additions and 38 deletions
|
|
@ -3,7 +3,16 @@ package moe.lava.banksia.native.maps
|
|||
import androidx.compose.material3.ExperimentalMaterial3Api
|
||||
import androidx.compose.material3.SheetState
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.ExperimentalComposeUiApi
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.platform.LocalWindowInfo
|
||||
import androidx.compose.ui.unit.Dp
|
||||
|
||||
@OptIn(ExperimentalComposeUiApi::class)
|
||||
@Composable
|
||||
actual fun getScreenHeight(): Int {
|
||||
return LocalWindowInfo.current.containerSize.height
|
||||
}
|
||||
|
||||
@OptIn(ExperimentalMaterial3Api::class)
|
||||
@Composable
|
||||
|
|
@ -11,8 +20,9 @@ actual fun Maps(
|
|||
modifier: Modifier,
|
||||
markers: List<Marker>,
|
||||
polylines: List<Polyline>,
|
||||
cameraPosition: Point,
|
||||
sheetState: SheetState,
|
||||
newCameraPosition: Point?,
|
||||
cameraPositionUpdated: () -> Unit,
|
||||
extInsets: Int,
|
||||
) {
|
||||
TODO("Not yet implemented")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue