Colton Idle
08/14/2025, 10:17 PM@Composable
fun Foo(){
val myFont = FontFamily(Font(`R.font.myfont`))
...
}
bad? Should be wrapped in a remember?Seri
08/15/2025, 4:22 PMMatti MK
08/18/2025, 10:32 AMSearchBar
component I get the following crash:
java.lang.NoSuchMethodError: No static method SearchBar-Y92LkZI(Lkotlin/jvm/functions/Function2;ZLkotlin/jvm/functions/Function1;Landroidx/compose/ui/Modifier;Landroidx/compose/ui/graphics/Shape;Landroidx/compose/material3/SearchBarColors;FFLandroidx/compose/foundation/layout/WindowInsets;Lkotlin/jvm/functions/Function3;Landroidx/compose/runtime/Composer;II)V in class Landroi
I've got no issues with other M3 components I've tried. Running Compose BOM 2025.05.01
, nav3, M3 adaptive. I've tried to look for this in the IssueTracker, but no luck there.
Any suggestions?oday
08/18/2025, 3:19 PMeygraber
08/18/2025, 10:33 PMentryProvider
DSL in nav3 supposed to be remembered
or is it not worth it?Alex Styl
08/19/2025, 4:02 AMLocalSoftwareKeyboardController
but I can't dismiss the keyboard from a modal/dialog if the reference of the SoftwareKeyboardController was taken from outside of the dialog's scope.shock 11
08/19/2025, 7:53 PMAdrian Landborn
08/21/2025, 7:26 AMAbhimanyu
08/22/2025, 10:32 AMmain
source set or the debug
source set?
Pros and Cons I could see:
main
Pros - Can preview any composable (public, internal and private
)
Cons - Preview methods are included in the final source code, which is not required.
debug
Pros - Preview methods are NOT included in the final source code.
Cons - Can not preview private
Composables as they are inaccessible from debug
source set.
I am referring to methods that contain code only for preview purposes.
E.g.
@Preview
@Compose
fun GreetingPreview() {
Greeting("Hello Compose!")
}
Colton Idle
08/23/2025, 5:22 PMprivate val _isInitialized = mutableStateOf(false)
val isInitialized: State<Boolean> = _isInitialized
luke_c
08/27/2025, 7:43 AMAndroidView
which reads from a lambda passed into the function, which is stable
AndroidView(factory = { context ->
onViewCreated()
...
}
)
However this is causing the factory function to be called, and the underlying view to be re-created on every configuration change. The lambda is ultimately created this way:
val onViewEvent = remember(viewModel) { viewModel::onViewEvent }
val onViewCreated = { onViewEvent(SomeViewEvent) }
The problem I'm seeing is that remember
doesn't survive configuration changes, so onViewEvent
gets remember'd again with a new reference (even though the viewModel instance is the same) and we can't use rememberSaveable
with lambdas (and I'm not sure it feels right to do so!)
Has anyone dealt with this before and figured out a solution?Mofe Ejegi
08/28/2025, 5:02 PMrememberSaveable
inputs. I assumed it's meant to work just like remember
keys or like LaunchedEffect
keys where any change in any of the keys would trigger a re-calculation or re-run of the init block.
But for some reason, it does't always run - it gives inconsistent results across different devices, and sometimes even on the same device.
Take a look at this code below, why does the print statement in the LaunchedEffect
and the remember
block work, but not the rememberSaveable
?
val density = LocalDensity.current
val d = density.density
val f = density.fontScale
println("Density: $d, Font Scale: $f")
LaunchedEffect(d, f) {
println("Screen density changed, resetting content height")
}
val testRememberHeight by remember(d, f) {
println("Recalculating test height")
mutableFloatStateOf(0f)
}
val contentHeightDp by rememberSaveable(d, f) {
println("Recalculating content height")
mutableFloatStateOf(0f)
}
Am I doing something wrong? Perhaps the way I'm changing the density (using the Android Studio Emulator quick tools) isn't the correct way?
Though I clearly see the logs printed indicating the Density and Scale changing.louiscad
09/01/2025, 1:44 PMColumn
with the verticalScroll
modifier than can scroll (i.e. content longer than the parent):
Spacer(Modifier.weight(1f).heightIn(min = 16.dp))
Spacer(Modifier.weight(1f).requiredHeightIn(min = 16.dp))
I have found NO working workaround.
There's also an abandoned issue on YouTrack: https://youtrack.jetbrains.com/issue/CMP-4212Jojo C
09/04/2025, 4:06 AMcontentType
? I have tried it and it works with Google Password Manager and Bitwarden, it works, but not with Samsung Pass.Irsath Kareem
09/08/2025, 10:58 AMcollectAsStateWithLifecycle()
is not collecting when we use Navigation3 as the Composable is receiving only Lifecycle.state.CREATED not Lifecycle.State.STARTED. But the collect**cycle()
needs STARTED state.
If we manually change minActiveState = CREATED, Then its fine, But the default is not working.......
Navigation3 Version: 1.0.0-alpha08
Lifecycle Navigation3: 2.10.0-alpha03
Runtime, UI, Viewmodel-nav3 libraries
Also included ViewModelStoreNavEntryDecorator, SavedStateNavEntryDecorator... as recommended.
If I fallback to the Navigation-Compose (Legacy), It is working fine......Shahid Iqbal4213
09/08/2025, 4:03 PMEslam Hussein
09/10/2025, 8:38 AMTlaster
09/11/2025, 10:29 AMFatal Exception: java.lang.IllegalStateException: LayoutCoordinate operations are only valid when isAttached is true
when I selecting a text in SelectionContainer -> keep selecting and navigate back. Full stacktrace in thread.Sergio Moral
09/11/2025, 2:09 PMColton Idle
09/11/2025, 3:59 PM/lib/arm64-v8a/libandroidx.graphics.path.so
isn't 16 KB page size compatible. Anyone know if this is a known compose issue? I'm not really doing anything too crazy in my app in terms of dependencies so I'm kinda lost at this androidx.graphics warning.Irsath Kareem
09/13/2025, 3:01 PMModalBottomSheet
is in the composition tree in a specific screen, Overlaided (Behind Sheet) Composables not receiving any pointerInputs (Gestures). - (shouldDismissOnClickOutside = false
)
I need a Behaviour such that, While ModalBottomSheet
is open, I want to interact with other composables behind the Sheet, Is it possible?
I see the implementation of ModalBottomSheet, as it is taking control of entire window.
Any workaround on this?Colton Idle
09/15/2025, 4:31 PMdp
set to a .66
value seems really weird. Is there any sort of documentation i can point to for this instead of just having a feeling that this is wrong? looks like we just copied the exact val from sketch.Adrian Landborn
09/18/2025, 9:45 AMSearchBarDefaults.InputField
inputfield is there a way to control cursor position with this implementation? I feel it is a bit odd that they didnt add a `SearchBarDefaults.InputField`that uses TextFieldValue
as query but only using a String
. Any ideas how to handle that without re-implementing a the whole Inputfield?brandonmcansh
09/23/2025, 4:31 PMbj0
09/29/2025, 7:06 PM.size()
on the canvas and use clipping so that the drawing functions don't have to care about the size of the canvas, they just draw their full content as normal.
This is working fine for shapes (rectangles, lines), but when I try to drawText
, as soon as it gets too far outside the limits of the canvas size, it throws an IllegalArgumentException: maxWidth must be >= than minWidth, maxHeight must be >= 0
. Im not sure why it does this, is there a workaround so that I can still avoid having a bunch of size checking logic in the drawing functions?mattinger
10/08/2025, 3:19 PMError: The apk for your currently selected variant cannot be signed. Please specify a signing configuration for this variant (debug).
I've even tried adding a debug signing key by adding the keystore and doign this in the app module:
signingConfigs {
getByName("debug") {
storeFile = rootProject.file("keystore/debug.keystore")
storePassword = "xxxxx"
keyAlias = "xxxxx"
keyPassword = "xxxxx"
}
}
buildTypes {
getByName("debug") {
signingConfig = signingConfigs.getByName("debug")
}
}
But it still shows the same error. Does anyone have any idea how to resolve this and/or what changed recently to cause this?Tlaster
10/09/2025, 3:45 AMSceneStrategy<T>.then
will cause infinite loop and the app will crash, seems like this line cause the issue.bryankeltonadams
10/10/2025, 12:30 AMeygraber
10/10/2025, 4:14 PMLookaheadPassDelegate.forEachChildAlignmentLinesOwner
(via material3 Scaffold
). Is this because nav3 is pulling in some alpha Compose artifacts, but others are on stable?Poulastaa
10/11/2025, 7:23 PM