Accompanist is a group of libraries that aim to supplement Jetpack Compose with features that are commonly required by developers but not yet available.
Questions tagged [jetpack-compose-accompanist]
128 questions
3
votes
3 answers
how to add spacing between row and columns in FlowLayout?
I'm migrating FlowLayout from the accompanist library with the native compose v1.4.0.
To give spacing between columns and rows we had FlowCrossAxisAlignment and FlowMainAxisAlignment, however now this approach is not available, on the vertical axis…

Rulogarcillan
- 1,130
- 2
- 13
- 23
3
votes
1 answer
How to disable pager animation of HorizontalPager in Jetpack Compose
I create a page which has 4 tabs and subpages, the HorizontalPager with dragEnabled = false, then I want to disable the animation when I click the tabs for changing the pages. How can I do it?
Column(modifier = Modifier.padding(bottom = 0.dp)) {
…

viosonlee
- 33
- 3
3
votes
1 answer
Accompanist webview prevents other composables from showing
I have the following screen which should show a loading indicator while the website isn't shown. However the WebView prevents any other composables from showing up until it is ready to show the website.
How can I show something else on this screen…

Isaak
- 1,107
- 2
- 11
- 29
3
votes
1 answer
Jetpack Compose - Lazy loading of data in Accompanist HorizontalPager
The problem is extremely simple and I don't know why anyone hasn't asked it before.
I have to query loads of data from database and then show that in HorizontalPager one by one. If I load all of the data at once, before composing HorizontalPager, it…

Bugs Happen
- 2,169
- 4
- 33
- 59
3
votes
2 answers
SystemUIController won't set status bar color - Jetpack Compose Accompanist
I'm not sure when or what I changed, but all of the sudden the systemUiController has stopped affecting the status bar color in my app. For context, I'm using the accompanist Insets library in combination with system UI controller to get rid of the…

Joseph Long
- 241
- 1
- 3
- 12
3
votes
0 answers
Swiping Horizontal Pager looses the item state when scrolled back and forth - JetpackCompose
I am making a quiz app. It uses Horizontal pager, in each item there is a question and 4 option radio buttons.i have 10 items in horizontal pager.
if i reach to last page and swipe back to first the selections made are gone and the page is loaded…

Harish Padmanabh
- 307
- 4
- 17
3
votes
0 answers
Rapid clicks navigation problem with bottom sheet in Jetpack Compose
I have a button from which on click I navigate to bottom sheet, the problem come when I click this button multiple times very fast, I am using accompanist library for navigation, as you see below, here is my ModalBottomSheetLayout and Scaffold
val…

Svilen Rusev
- 309
- 4
- 15
3
votes
1 answer
Accompanist Pager `offscreenLimit` removed. How to disable preloading of nearby pages?
Since version v0.19.0; offscreenLimit parameter has been removed. How to disable preloading using some other technique?
@Composable
fun MyComposable(){
val pagerState = rememberPagerState()
HorizontalPager(
state…

Shreyash.K
- 487
- 4
- 14
3
votes
0 answers
Bottom sheet and Bottom bar in jetpack compose
I want to display bottom bar with my menu icons and bottom sheet which to start from the end of the bottom bar.
I am also using accompanist navigation library
@Composable
fun AppRouter() {
val navController = rememberNavController()
val…

Svilen Rusev
- 309
- 4
- 15
3
votes
1 answer
How to quickly switch to next page in VerticalPager?
I am using Accompanist Pager library (version 0.18.0) and created a VerticalPager for displaying certain pictures.
While scrolling up/down, the required behavior is to scroll to the next/previous picture, which works, but on a quick scroll, it is…

Ali_Waris
- 1,944
- 2
- 28
- 46
3
votes
3 answers
(Compose UI) - Keyboard (IME) overlaps content of app
A few days ago I bumped on a problem where a part of my view is overlaped by keyboard.
Let's say we have 3 different dialogs (could be any content), which looks like this:
When I want to write in anything, last dialog is covered by keyboard:
And…

Drogheda
- 209
- 3
- 16
3
votes
2 answers
Resistance with scroll in HorizontalPager in Jetpack Compose
I have implemented HorizontalPager with TabRow in my project. My HorizontalPager uses default fling behaviour from PagerDefaults.flingBehavior(state). I have not overridden the fling behavior.
This is how the code looks like:
val pagerState =…

Abhishek Kumar
- 4,532
- 5
- 31
- 53
3
votes
1 answer
Android app crash due to NullPointerException in Accompanist HorizontalPager for Jetpack Compose
I'm using Accompanist HorizontalPager in an Android Jetpack Compose project to show a dynamically changing list from Firebase Firestore. It works well if the list is initially empty or has items, but once it has some items and then becomes empty,…

Roshan
- 369
- 4
- 9
2
votes
2 answers
Screen content moves prior to navigation in compose
I have a main compose with a scaffold, top app bar, FAB, navigation bar. Then I have a couple of composable screens I can navigate to and the navigation animation is working fine, which means the default fade in, fade out of Accompanist Navigation…

DeKekem
- 589
- 10
- 20
2
votes
2 answers
Jetpack Compose TabRow flickers when content is accompanist webview
I am experiencing flicker or overlapping when having a compose tabBar implementation with webviews as content. If I change the webviews with another view (ex. Box{Text}) it does not happen.
It seems as if the webview is filling more than it's border…

MNielsen
- 117
- 9