2020-03-11 14:45:49 -07:00
|
|
|
package com.geeksville.mesh.ui
|
|
|
|
|
|
|
|
|
|
import androidx.compose.Composable
|
2020-03-11 18:13:44 -07:00
|
|
|
import androidx.ui.androidview.AndroidView
|
2020-03-11 14:45:49 -07:00
|
|
|
import androidx.ui.core.ContextAmbient
|
|
|
|
|
import androidx.ui.material.MaterialTheme
|
|
|
|
|
import androidx.ui.tooling.preview.Preview
|
2020-03-11 18:13:44 -07:00
|
|
|
import com.geeksville.mesh.R
|
2020-03-11 14:45:49 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
@Composable
|
|
|
|
|
fun MapContent() {
|
2020-03-11 18:13:44 -07:00
|
|
|
analyticsScreen(name = "map")
|
2020-03-11 14:45:49 -07:00
|
|
|
|
|
|
|
|
val typography = MaterialTheme.typography()
|
|
|
|
|
val context = ContextAmbient.current
|
|
|
|
|
|
2020-03-11 18:13:44 -07:00
|
|
|
AndroidView(R.layout.map_view) {
|
2020-03-11 14:45:49 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Preview
|
|
|
|
|
@Composable
|
|
|
|
|
fun previewMap() {
|
|
|
|
|
// another bug? It seems modaldrawerlayout not yet supported in preview
|
|
|
|
|
MaterialTheme(colors = palette) {
|
|
|
|
|
MapContent()
|
|
|
|
|
}
|
|
|
|
|
}
|