Restore comment on StaticMapView
This commit is contained in:
parent
af9f381d24
commit
543fd5cf43
1 changed files with 3 additions and 0 deletions
|
|
@ -58,6 +58,9 @@ fun StaticMapView(
|
||||||
modifier: Modifier = Modifier,
|
modifier: Modifier = Modifier,
|
||||||
darkMode: Boolean = !ElementTheme.isLightTheme,
|
darkMode: Boolean = !ElementTheme.isLightTheme,
|
||||||
) {
|
) {
|
||||||
|
// Using BoxWithConstraints to:
|
||||||
|
// 1) Size the inner Image to the same Dp size of the outer BoxWithConstraints.
|
||||||
|
// 2) Request the static map image of the exact required size in Px to fill the AsyncImage.
|
||||||
BoxWithConstraints(
|
BoxWithConstraints(
|
||||||
modifier = modifier,
|
modifier = modifier,
|
||||||
contentAlignment = Alignment.Center
|
contentAlignment = Alignment.Center
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue