fix: sources screen being misaligned during transitions

This commit is contained in:
Ax333l 2023-06-29 10:03:15 +02:00
parent 0dccb8c27b
commit 149c8cc8b2

View file

@ -2,6 +2,7 @@ package app.revanced.manager.ui.screen
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.pager.HorizontalPager
import androidx.compose.foundation.pager.rememberPagerState
@ -86,6 +87,7 @@ fun DashboardScreen(
pageCount = pages.size,
state = pagerState,
userScrollEnabled = true,
modifier = Modifier.fillMaxSize(),
pageContent = { index ->
when (pages[index]) {
DashboardPage.DASHBOARD -> {