image.png
# android
j
image.png
n
have you tried to import like this??
import com.google.accompanist.pager.HorizontalPager
j
hey thanks, that seems to work
👍 1
however my UI does NOT agree
image.png
but despite of that it compiles
n
Copy code
HorizontalPager(
  count = 3,
  state = pagerState,
  modifier = Modifier
    .fillMaxWidth()
    .weight(1f)
) {
  // IntroPageItem()
}
j
image.png
n
HorizontalPager
is an ExperimentalApi in material 3
Copy code
@OptIn(ExperimentalPagerApi::class)
@Composable
fun FrontPage() {
    NowindCompanionTheme {
        HorizontalPager(count = 3)
        { page ->
            Text(
                text = "Page: $page",
                modifier = Modifier.fillMaxWidth()
            )
        }
    }
}