Skip to content

Commit

Permalink
Fix a weird scroll when opening the floor plan screen
Browse files Browse the repository at this point in the history
  • Loading branch information
n0tnull committed Apr 11, 2024
1 parent 8917af5 commit 179f3a7
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,22 @@ package com.androidmakers.ui.venue

import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.unit.dp
import com.seiko.imageloader.rememberImagePainter
import dev.icerock.moko.resources.compose.painterResource
import fr.paug.androidmakers.ui.MR

@Composable
fun FloorPlan(floorPlanUrl: String) {
Box(modifier = Modifier.verticalScroll(rememberScrollState())) {
Box(
modifier = Modifier
.fillMaxWidth()
.fillMaxHeight()
.verticalScroll(rememberScrollState())
) {
val painter = rememberImagePainter(floorPlanUrl)

Image(
Expand Down

0 comments on commit 179f3a7

Please sign in to comment.