Stylianos Gakis
02/14/2023, 9:22 PMeygraber
02/14/2023, 9:53 PMPreviewParameterProvider
?Nicolai
02/14/2023, 9:58 PMKotlinLeaner
02/14/2023, 10:14 PMeygraber
02/15/2023, 4:37 AMOutlinedTextField
where they are nullable, and Scaffold
where they are empty lambdas?wintersoldier
02/15/2023, 9:28 AMwintersoldier
02/15/2023, 11:55 AMAloneWalker
02/15/2023, 12:34 PMKotlinLeaner
02/15/2023, 12:50 PMweight
modifier in better way in Column
.Oliver.O
02/15/2023, 1:09 PMLazyListScope.items
method which adds a count of (lazily loaded) items (as used by the Paging library): Is it correct to assume that the stability requirement for key
applies to real items only and placeholder item keys may be unstable? Details in 🧵.Tolriq
02/15/2023, 7:18 PMDavide Giuseppe Farella
02/15/2023, 9:10 PMJi Sungbin
02/15/2023, 9:37 PM@get:Rule
val composeTestRule = createComposeRule()
@Test
fun test_recomposition() {
var recomposed = false
composeTestRule.setContent {
Box {
println("composed!")
if (!recomposed) {
recomposed = true
currentRecomposeScope.invalidate() // <--- try recomposition here
}
}
}
}
xxfast
02/15/2023, 10:15 PMJustin Xu
02/16/2023, 5:05 AMModifier.scrollable()
my best option?Ruben Quadros
02/16/2023, 6:49 AMKotlinLeaner
02/16/2023, 11:31 AMView.INVISIBLE
to just don't show the view at all, but it still takes up space for layout purposes. What is the alternative in jetpack compose?
AnimatedVisibility(
// true or false
) {
Button() // button code.
}
Tgo1014
02/16/2023, 12:08 PMfillMaxWidth()
but then it stretches the parent even if it's not needed. Is there a way do to this?Joseph Hawkes-Cates
02/16/2023, 2:07 PMColton Idle
02/16/2023, 3:39 PMUchenna Okoye
02/16/2023, 4:59 PMeygraber
02/16/2023, 6:45 PMCharSequence
as being stable? I'm using it as a way to pass around either String
or AnnotatedString
.eygraber
02/16/2023, 7:03 PM@Immutable
?
public class ComposeTest {
private val foo: CharSequence = ""
@Composable
public fun Render() {
println(foo)
}
}
restartable fun Render(
unstable <this>: ComposeTest
)
zsperske
02/16/2023, 8:00 PMLazyColumn
with an AndroidView
which wraps a WebView
LazyColumn {
AndroidView(
factory = {
WebView()
}
)
//other stuff
}
The WebView has horizontal scrolling but while scrolling it, the lazy column & android view “fight” over the scroll input. If your horizontal scroll has any kind of vertical component to it, the lazy column will start scrolling. Other native views in the same lazy column that scroll horizontally work correctly (as in if your scroll is partially vertical, the lazy column won’t scroll errantly)
Has anyone run into this before?Michael Paus
02/16/2023, 8:36 PMjulioromano
02/16/2023, 8:43 PMAlexander Maryanovsky
02/16/2023, 9:13 PMArrangement
that gives each item the same amount of “room” and then aligns within that room. Like if I put each item in a box of the same weight and aligned within the box?Alex
02/16/2023, 11:16 PMModifier.imePadding()
?Shubham Singh
02/17/2023, 9:35 AM1.4.0-alpha01-dev938
with Kotlin Version 1.8.0
where I have a common module named composeMain
that contains common composables for both Desktop and Android.
I've just realised that rememberSaveable
is not persisting values through screen rotations on Android. I tried downgrading to the latest stable version 1.3.0
as well but I'm still facing the same issue.
Is this a known bug? Or I might be doing something wrong here?Saurav Suman
02/17/2023, 10:48 AM<https://stackoverflow.com/questions/74381205/removing-item-from-the-list-causes-wrong-display-in-lazycolumn>