Skip to content

Commit

Permalink
scrollable trick info screen
Browse files Browse the repository at this point in the history
  • Loading branch information
osik2000 committed Jan 13, 2024
1 parent 34c3011 commit 32169f6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowBack
import androidx.compose.material3.ExperimentalMaterial3Api
Expand Down Expand Up @@ -40,7 +42,8 @@ fun TrickInfoComposable(trickId: String, navController: NavController) {
modifier = Modifier
.fillMaxSize()
.padding(padding)
.padding(16.dp),
.padding(16.dp)
.verticalScroll(rememberScrollState()),
horizontalAlignment = Alignment.CenterHorizontally
) {
TrickGif(url = trickInfo.photoUrl)
Expand Down

0 comments on commit 32169f6

Please sign in to comment.