Napa Ram
08/20/2021, 5:30 AMZoltan Demant
08/20/2021, 5:55 AMSaveableStateHolder.SaveableStateProvider()
and AnimatedContent
together? Whenever I try, the ui-state just seems to be lost after navigation; e.g. I can navigate between screens A/B/C while they keep their individual scroll-positions, but as soon as animated content enters the picture the scroll-positions are reset on each navigation. Id love to understand why this happens, if theres a way to work with it, or if I should just use Animatable
and do the work myself?Colton Idle
08/20/2021, 6:30 AMImage
, but I want the animation state of the slideIn/Out to be driven by the scrollState of my Column. Is there any way to hook those up to each other?Alex
08/20/2021, 8:02 AMcurtjrees
08/20/2021, 8:30 AMDisposableEffect
to handle tracking screen views?
Seems it’s a pretty good fit to know when a Composable is shown on screen and then knows when it leaves the screen as well
It’s not really a operation that needs cleaning up though, so maybe doesn’t fit the typical use case of DisposableEffect
Jason Ankers
08/20/2021, 8:54 AMAlex
08/20/2021, 9:00 AMStanislav Pestov
08/20/2021, 9:54 AMPager
without parent measuring with BoxWithConstraints/SubcomposeLayout?Ernestas Balčiūnas
08/20/2021, 11:19 AMCacato86
08/20/2021, 11:21 AMCheckBox
. I’m taking a look on the internal implementation and it defines his size as a private val private val CheckboxSize = 20.dp
. I don’t know why some Framework components are not be able to change their size. Same for the padding, it has an internal padding private val CheckboxDefaultPadding = 2.dp
and I can’t figure out how to get rid of it.Piotr Prus
08/20/2021, 11:33 AMhussan
08/20/2021, 12:22 PMNick
08/20/2021, 1:19 PMStylianos Gakis
08/20/2021, 1:38 PMnlindberg
08/20/2021, 1:42 PMMarco
08/20/2021, 2:10 PMButton
that contains a Column
(that contains other stuff), but I want that this column fills the remaining space inside the Button
, basically I want that the column fit all the space inside the Button. In the old world I was used to put match_parent
width.
.fillMaxWidth()
doesn't work well because in this way the buttons fills all witdh space in my composable. Any ideas?nglauber
08/20/2021, 3:09 PMScreenA
which I’m using
LaunchEffect(viewModel) {
viewModel.loadSomeData()
}
In this screen, somewhere in the future I call ScreenB
. But when I go back to ScreenA
, the loadSomeData()
is called again…
Is there a way to avoid that?rajesh
08/20/2021, 4:28 PMTash
08/20/2021, 5:15 PMText
its color
via a TextStyle
(esp when using a TextStyle
is coming from a Theme.typography
), vs via the color
parameter? i.e.
Text(style = MyTheme.typography.title.copy(color = #123456))
VS
Text(style = MyTheme.typography.title, color = #123456)
trying to choose the “best” approach in this caseAbhishek Dewan
08/20/2021, 5:34 PMSideEffect {
viewModel.getPlatforms()
}
In other words viewModel.getPlatforms fires twice where as it didn’t use to be the case before. Perhaps I was misusing the api beforeShakil Karim
08/20/2021, 6:53 PMLorenzo Benevento
08/20/2021, 8:12 PMJason Inbody
08/20/2021, 11:16 PMJason Inbody
08/21/2021, 1:54 AMrememberLauncherForActivityResult
because there's no intent to send into the launcherZach Klippenstein (he/him) [MOD]
08/21/2021, 2:03 AMRememberObserver.onAbandoned()
Anton Dmytryshyn
08/21/2021, 3:27 AMJason Inbody
08/21/2021, 3:55 AMColton Idle
08/21/2021, 6:10 AMAdib Faramarzi
08/21/2021, 6:53 AMsize
of the screen as a value?
I thought it would be available in LocalDensity.current
but it isn't.Mjahangiry75
08/21/2021, 10:39 AMComposable
for billing stuff like the code bellow
@Composable
internal fun BillingScreen(activity: Activity, billingClient: BillingClient)
is this a bad idea?