Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I import HorizontalPager?

just started my first Jetpack project. I want to use HorizontalPager (https://developer.android.com/reference/kotlin/androidx/compose/foundation/pager/package), but I get a unresolved reference error. I see that this is marked as experimental, but using the opt in directive doesn't help. Any leads?

Thanks!

like image 885
DrGonzoX Avatar asked Dec 13 '25 11:12

DrGonzoX


1 Answers

accompanist-pager already deprecated and most of it are deprecated (migrated).

Implement this. That's all you need.

implementation("androidx.compose.foundation:foundation:1.6.8")
like image 164
Nrohpos Avatar answered Dec 15 '25 07:12

Nrohpos



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!