Skip to content

Commit

Permalink
Use material3 in callout demo
Browse files Browse the repository at this point in the history
  • Loading branch information
p-lr committed Nov 2, 2024
1 parent 58aff19 commit 0e38fbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ import androidx.compose.animation.core.Easing
import androidx.compose.animation.core.tween
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Surface
import androidx.compose.material.Text
import androidx.compose.material3.Surface
import androidx.compose.material3.Text
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
Expand Down Expand Up @@ -57,7 +56,7 @@ fun Callout(
transformOrigin = TransformOrigin(0.5f, 1f)
},
shape = RoundedCornerShape(5.dp),
elevation = 10.dp
shadowElevation = 10.dp
) {
Column(Modifier.padding(16.dp)) {
Text(
Expand All @@ -66,7 +65,6 @@ fun Callout(
fontSize = 14.sp,
textAlign = TextAlign.Center,
fontWeight = FontWeight.Bold,
color = Color.Black
)
Text(
text = "position ${df.format(x)} , ${df.format(y)}",
Expand All @@ -75,7 +73,6 @@ fun Callout(
.padding(top = 4.dp),
fontSize = 12.sp,
textAlign = TextAlign.Center,
color = Color.Black
)
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package ovh.plrapps.mapcompose.demo.ui.widgets

import androidx.compose.foundation.layout.size
import androidx.compose.material.Icon
import androidx.compose.material3.Icon
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
Expand Down

0 comments on commit 0e38fbd

Please sign in to comment.