Jonas
06/20/2022, 8:20 PMZoltan Demant
06/21/2022, 4:06 AMDropdownMenu
? It seems to inherit it from the theme internally. Using Modifier.background
doesnt work in the sense that Im able to see parts of the inherited background as well.galex
06/21/2022, 7:50 AMinline fun Modifier.optional(
block: Modifier.() -> Modifier?
) = block() ?: this
And we use it this way:
.optional {
frameColor?.let {
border(4.dp, it, CircleShape)
}
}
It there a better way to do this? 🤔Satyam G
06/21/2022, 10:46 AMJavier
06/21/2022, 11:03 AMMatti MK
06/21/2022, 11:49 AMScaffold
.
• Graph1 has no scaffold
• Graph2 has typical bottom scaffold
• Graph3 has top and bottom scaffolds, but only with Graph3
routes
I am wondering how to build this. Should I have multiple Scaffold
and NavHost
or instead use just one NavHost
and one Scaffold
, switching out the Scaffold
content based on current Graph? Thank you 🙂Andrei Kovalev
06/21/2022, 1:04 PM1.2.0-beta02
crashes (only on OPPO and Realme devices) when calculating child constraints. crossAxisSize
has a negative value. Does anyone experience the same crash?Christian Meese
06/21/2022, 1:24 PMDan Peluso
06/21/2022, 2:32 PMdorche
06/21/2022, 3:34 PMtheapache64
06/21/2022, 8:31 PM1.2.0-*
needs Android32
as targetSdk? Happening when am using latest accompanist version 🤔theapache64
06/21/2022, 8:44 PM1.2.0-alpha01
) and the app using latest stable version (eg. 1.1.1
), which version will gradle pick? (i hope its the former - 1.2.0-alpha01
) In that case, if there’s a breaking API change in the latest version, how that’s managed by gradle? Would that fail the build? or does compose compiler will do some magic? 👀 Would this version conflict can cause an error like this?james
06/21/2022, 10:21 PMNavHost
, one Scaffold
and BottomNavigation
at the root level, with many nested screens & Composables under that: is there a recommended way to show and hide the BottomNavigation
?
I have a nested LazyColumn
which I’d like to use to trigger showing/hiding of that BottomNavigation
when I scroll up/down. this is fairly simple when the BottomNavigation
is “closer” to the Composable triggering it, but when it’s deeply nested I wonder what the best solution is?
do I simply pass a lambda like toggleBottomNavigationVisibility
all the way from the top level where the Scaffold
is, through many Composables, down into my deeply nested one? this would work but I would like to know if there’s a better way and my brain isn’t seeing it 😄David Corrado
06/21/2022, 10:51 PMallan.conda
06/22/2022, 5:48 AMTextFields
?raghunandan
06/22/2022, 7:33 AMjasu
06/22/2022, 9:49 AMAndroidView(
factory = {
CropImageView(it).apply {
setCenterMoveEnabled(true)
setSnapRadius(16f)
setBackgroundColor(Color.Black.toArgb())
with(density) {
layoutParams = ViewGroup.LayoutParams(maxWidth.roundToPx(), maxHeight.roundToPx())
}
}
},
update = { cropView ->
// how to call cropView.rotateImage(90) }
)
Billy Newman
06/22/2022, 1:23 PMZoltan Demant
06/22/2022, 2:32 PMMarco Pierucci
06/22/2022, 3:25 PMFatal Exception: java.lang.IllegalStateException: LayoutCoordinates androidx.compose.ui.node.InnerPlaceable@50d1d48 is not attached!
On firebase, without code changes.
Worst of all is that It cant even bee reproduced reliablespierce7
06/22/2022, 4:07 PMBox {
A()
B()
}
It’s fine if the API here changes. The only way I can think to do this would be to somehow render A and B to `ImageBitmap`s and then draw them in a Canvas
with a BlendMode
.
However the only way that I can think to get A or B to ImageBitmap
would be with ImageComposeScene
which seems like a really bad idea.zsperske
06/22/2022, 5:23 PMif (viewModel.state.scrollToTop) {
LaunchedEffect(viewModel.state.scrollToTop) {
scrollState.animateScrollTo(0)
viewModel.updateScrollToTop(false)
}
}
rkeazor
06/22/2022, 6:35 PMColton Idle
06/22/2022, 6:53 PMKeyboardOptions.Default.copy(
capitalization = when (textFieldType) {
MyCustomInputFieldType.EMAIL -> "How do I use the default here?"
MyCustomInputFieldType.NAME -> KeyboardCapitalization.Sentences
MyCustomInputFieldType.NUMBER -> "and here?"
}
Colton Idle
06/22/2022, 7:13 PMKunal Raghav
06/22/2022, 7:41 PMColton Idle
06/22/2022, 8:18 PMManojna Chintapalli
06/23/2022, 12:16 AMtheapache64
06/23/2022, 5:57 AMWindowInsets
class ? 🤔Honey Sandy
06/23/2022, 9:33 AMHoney Sandy
06/23/2022, 9:33 AMlilypuchi
06/23/2022, 9:36 AMHoney Sandy
06/23/2022, 9:56 AM