refactor: Migrate GuidedTourScreen to androidx.compose.foundation.pager

Migrated the GuidedTourScreen from deprecated Accompanist Pager to androidx.compose.foundation.pager.
Removed HorizontalPagerIndicator usage, as a direct replacement is not available and requires custom implementation.
This commit is contained in:
2025-11-06 14:51:46 +01:00
parent 4f0edbca22
commit fb8e7917bc

View File

@@ -19,10 +19,10 @@ import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.unit.dp
import com.google.accompanist.pager.HorizontalPager
import com.google.accompanist.pager.HorizontalPagerIndicator
import com.google.accompanist.pager.rememberPagerState
import de.lxtools.noteshop.R
import androidx.compose.foundation.pager.rememberPagerState
import androidx.compose.foundation.pager.HorizontalPager
@Composable
fun GuidedTourScreen(onTourFinished: () -> Unit) {
@@ -57,12 +57,8 @@ fun GuidedTourScreen(onTourFinished: () -> Unit) {
}
}
HorizontalPagerIndicator(
pagerState = pagerState,
modifier = Modifier
.align(Alignment.CenterHorizontally)
.padding(16.dp)
)
// TODO: Implement a custom HorizontalPagerIndicator or use a third-party library
Button(
onClick = onTourFinished,