14,271 questions
0
votes
0
answers
44
views
Kotlin ViewModel StateFlow - Properly Updating State Changes
This question is to understand StateFlow in a view-model. How to update the value more than one time properly. So, a very interesting issue happens, value updates for this first time, when, say authV1 ...
0
votes
1
answer
58
views
How can I keep a ModalBottomSheet only partially expanded without clipping its content?
BEFORE THE COMPOSE BUMP
Before migrating from Compose 2025.08.00 to 2026.05.01, I worked around this by using:
ModalBottomSheet(
containerColor = if(isSystemInDarkTheme()) Gray700 else White,
...
4
votes
1
answer
100
views
Gradle cannot resolve androidx.compose:compose-bom:2026.06.00
PROBLEM
I want to upgrade my Jetpack Compose version to the latest available release.
According to the Compose BOM mapping page:
https://developer.android.com/develop/ui/compose/bom/bom-mapping
the ...
Best practices
0
votes
2
replies
65
views
When can omitting an explicit annotation target be dangerous?
Recently, Android Studio has started highlighting some annotation usages in my Kotlin code. I get the following warning:
The annotation is only applied to the parameter.
An explicit annotation use-...
1
vote
0
answers
69
views
ModalBottomSheet continuously bounces/jumps after fast upward fling when content is near full-screen height
I'm facing an issue with ModalBottomSheet in a Jetpack Compose Android project.
Issue Description
When the ModalBottomSheet contains a large amount of content (making its height close to full screen), ...
1
vote
0
answers
43
views
Does LazyLayoutCacheWindow ahead prefetch work on iOS in Compose Multiplatform?
I’m trying to confirm the behavior of LazyLayoutCacheWindow on iOS in Compose Multiplatform.
In our project we are using Compose Multiplatform 1.10.3, and we tried something like:
@OptIn(...
1
vote
1
answer
120
views
Android Compose: Text overlapping status bar in Preview(showSystemUi = true), not on device
I am starting my first Compose project with Android Studio (Panda 4 | 2025.3.4 Patch 1). I just opened Android Studio, slected New Project > Empty Activity, and did not add one line of code.
When I ...
-1
votes
0
answers
65
views
Can ComposeUIViewController provide intrinsic content size to SwiftUI UIViewControllerRepresentable?
I'm using Compose Multiplatform on iOS and embedding a ComposeUIViewController inside SwiftUI.
My hierarchy is:
SwiftUI ScrollView
└── UIViewControllerRepresentable
└── ComposeUIViewController ...
1
vote
1
answer
76
views
Compose predictive back Android
I’m working on a fully Compose, single-activity project using Navigation Compose (Nav2), and I’m trying to implement predictive back.
The issue is: when I start the predictive back gesture, the ...
-1
votes
0
answers
70
views
Android Compose UI Tests displaying cached/stale Firestore emulator data when running all tests together [duplicate]
I am writing UI integration tests for a Jetpack Compose Android application using the Firebase Firestore Emulator hosted on a local test server.
I want every single test case to start with a clean ...
Tooling
0
votes
1
replies
56
views
Is it safe to call NavController navigation functions from a Composable outside NavHost?
CODE DESCRIPTION
In my code, I use a coordinator that triggers navigation to a screen when a specific condition is met.
I’m wondering whether this structure is safe:
MyAppNavHost()
...
Best practices
0
votes
2
replies
76
views
Disable exit transition for a single navigation action in Navigation Compose
PROBLEM DESCRIPTION
I’m trying to add a force update screen to my app that imitates a bottom sheet. The force update flow has a separate NavGraphBuilder, so I show it like this:
LaunchedEffect(uiState....
2
votes
1
answer
146
views
How to make Material3 ModalBottomSheet non-draggable while keeping internal content scrollable in Jetpack Compose?
Description
I am using Material3 ModalBottomSheet in Jetpack Compose and I want to place a scrollable list inside it.
The problem is that there seems to be a gesture conflict between the scrollable ...
2
votes
3
answers
148
views
How to prevent clicks from passing through a custom Compose bottom sheet scrim?
Description
I'd like my CustomSheet to cover the screen properly and block all interactions with the screen underneath. I thought this was the default behaviour for any Composable that is on top. ...
Best practices
1
vote
3
replies
58
views
How to manage AnimatedVisibility visible state to Avoid Redundant Rendering hidden states
I try to make custom ModalBottomSheet() with this code:
Box(modifier = Modifier.fillMaxSize()) {
Box(
modifier = Modifier
.fillMaxSize()
.background(Color.Black....