Chris Fillmore
09/01/2022, 6:29 PMLazyListScope.items()
I have this function more or less, in my app. Would something like this ever land in the material package?Afzal Najam
09/01/2022, 7:51 PMFinlandia
09/01/2022, 8:55 PMJoseph Hawkes-Cates
09/01/2022, 9:43 PMOthman El Jazouli
09/02/2022, 9:55 AMcom.google.accompanist:accompanist-systemuicontroller
we can change single color
val systemUiController = rememberSystemUiController()
systemUiController.setStatusBarColor(Color.Gray)
but can’t find for gradient
in the screen I’m working on the background is gradient and can be animated to another gradient and I would like to have the same effect for the status barnuhkoca
09/02/2022, 10:28 AMLazyColumn
? I’d like to show/hide items with a neat animation(AnimatedVisibility
preferably) but I can’t use @Composable
in LazyList scope.ste
09/02/2022, 1:24 PMKotlinLeaner
09/02/2022, 1:52 PMTravis Griggs
09/02/2022, 4:45 PMAaron Waller
09/02/2022, 5:44 PMjava.lang.NullPointerException: Attempt to invoke virtual method 'void androidx.test.uiautomator.UiObject2.setGestureMargin(int)' on a null object reference
Travis Griggs
09/02/2022, 6:23 PMres
and dragging files into there. But that didn't make R.SVG.resourcename automatically a thing
The documenation/posts I do find seem to show some sort of evolution towards more and more supported. I'm just not clear on what the current snapshot is.Slackbot
09/02/2022, 10:52 PMAmrJyniat
09/03/2022, 11:23 AMfillMaxSize()
.
Code in 🧵Zoltan Demant
09/03/2022, 12:25 PMorangy
09/03/2022, 1:17 PMderivedStateOf
considered “changed” when any of its tracked states change, even if yielded value is the same?nuhkoca
09/03/2022, 9:08 PMVisualTransformation
? 🙏Asad Mukhtar
09/04/2022, 10:10 AMErfannj En
09/05/2022, 1:27 PMTransitionManager.beginDelayedTransition(root)
in compose??mgrazianodecastro
09/05/2022, 4:25 PMBilly Newman
09/05/2022, 4:32 PMColton Idle
09/05/2022, 8:09 PMModifier.onSizeChanged {
Log.e("DEBUG", "height: ${it.height} and totalHeight: $totalSize")
totalSize += it.height
}
E/DEBUG: height: 340 and totalHeight: 340
E/DEBUG: height: 340 and totalHeight: 680
E/DEBUG: height: 340 and totalHeight: 1020
...
then crashes
All I'm trying to do is fine the height of a composable after it's been drawn so I know it's height in pixels.
I'm confused because this wasn't happening in the past, but it seems like in alpha2 or alpha3 something changed?mgrazianodecastro
09/06/2022, 1:06 AMKyant
09/06/2022, 5:30 AMAlex
09/06/2022, 6:42 AMModifierLocal
but the padding does not seem to apply. I could not find much documentation on ModifierLocal
or any tutorials, hope you can point me in the right direction, code in 🧵Alexander
09/06/2022, 7:55 AMTin Tran
09/06/2022, 8:42 AMCharles Jo
09/06/2022, 11:53 AMdimsuz
09/06/2022, 1:48 PMfun MyLayout(someState: Int) {
Layout(content) { measureables, constraints ->
if(someState) thisLogic() else thatLogic()
}
}
It updates layout whenever someState
changes, but now I want to factor out MeasurePolicy into a separate class (there will be several of them):
fun MyLayout(someState: Int) {
val policy = remember { MyMeasurePolicy({ someState }) }
Layout(content, policy)
}
class MyMeasurePolicy(private val someState: () -> Int)) : MeasurePolicy
I have made someState
into a "provider lambda" to avoid recreating policy on each someState
change (it will change more or less often).
But now my layout is not re-measured when someState
changes.
Any hints on how to do this right?Stylianos Gakis
09/06/2022, 3:33 PMAppState
itself change, or some internal state of AppState
?
If it’s internal state, is that defined as a MutableState
or a simple var
?
A peek inside your AppState
would make it easier to debug.ste
09/06/2022, 4:47 PMste
09/06/2022, 4:47 PMChris Sinco [G]
09/06/2022, 6:04 PMSiyamed
09/06/2022, 6:07 PMgian
09/07/2022, 8:35 AMSiyamed
09/07/2022, 2:27 PMste
09/07/2022, 2:59 PMSiyamed
09/07/2022, 3:20 PM