John
11/09/2020, 3:03 PMharry248
11/09/2020, 3:58 PMjava.lang.IllegalArgumentException: Layer is redrawn for LayoutNode in state NeedsRelayout
when using AnimatedVisibility
for items in a LazyColumn?pavi2410
11/09/2020, 5:36 PMgrandstaish
11/09/2020, 6:22 PMscrollable
modifier a parent composable, I never get the opportunity to consume scroll events before my children do. Basically i want to intercept the scroll gestureGabriel
11/09/2020, 8:42 PMmodifier: Modifier = Modifier
from the parent to the child but, want to allow some control (background colour for eg) of the subchildrenSam
11/09/2020, 11:51 PMzsoltk/compose-router
to navigation-compose
and a few issues rose to the forefront:
• when where there be support for animation transitions between screens?
• is there anyway to create a nested graph?
• has anyone noticed sluggish performance when navigating? tapping a BottomNavigationItem
used to have a clean ripple effect when navigating, and now it's super choppy (even without any screen to screen transition)takahirom
11/10/2020, 1:26 AM/*
* stateless
*/
fun HomeScreen(val currentTab, val articleList...., onFavorite:()->Unit) {
}
Irving
11/10/2020, 2:17 AMComposer
or LayoutNode
? Or what source code do I need to read to get these knowledges? I am very confused and I want to know the principle behind the implementation.Ben Woodworth
11/10/2020, 2:29 AMSiyamed
11/10/2020, 4:18 AMGeert
11/10/2020, 10:35 AMText(
color = Color.White,
text = "Verwijder Alles",
textAlign = TextAlign.Center,
modifier = Modifier.padding(16.dp),
style = TextStyle(
color = Color.White,
fontSize = TextUnit.Sp(20),
fontWeight = FontWeight.Bold
),
)
Gabriel
11/10/2020, 10:53 AMCircularProgressIndicator()
atmJrichards1408
11/10/2020, 11:29 AMCyril Find
11/10/2020, 12:00 PMLuis Daivid
11/10/2020, 1:35 PMBradleycorn
11/10/2020, 2:01 PMnavigation-compose
library. But, the examples in the documentation all show the navController
being passed down into the “Screen” Composables, and click handlers setup that call navController.navigate()
. Without having tried it yet myself, this seems not great. Writing a Composable that requires a navController
makes it less testable and less re-usable, no?
Seems like it might be better to let the composables bubble up events and then handle them and do the navigation at the root level of the tree where the navController exists. But that too can get complicated because a “nav event” might need more than just a route to navigate to (for example, you might want to specify if it should pop the back stack, and how far to pop the back-stack, etc).Se7eN
11/10/2020, 3:19 PMKamilH
11/10/2020, 6:23 PMComposable
functions? I went through “Under the hood of Jetpack Compose” recently and I saw it mentions that calling context is getting passed to Composable
functions. I thought it’s done similarly to suspend
functions, so when I decompile Composable
function I will see something similar to Continuation
object, but nothing like that is there. I know Compose works also in the phase of code generation during compilation, so is it possible to see generated code?Big Chungus
11/10/2020, 6:24 PMJordi Saumell
11/10/2020, 8:08 PMEric Ampire [MOD]
11/10/2020, 8:17 PMjava.lang.NoClassDefFoundError: Failed resolution of: Landroidx/compose/ui/platform/InspectableParameter;
at androidx.compose.foundation.BackgroundKt.background-1xq40Q0(Unknown Source:0)
Robert Menke
11/11/2020, 12:18 AMAllan Wang
11/11/2020, 8:58 AMRafs
11/11/2020, 3:51 PMsnapShot
on button click but I keep running into a snapshotApplyConflictException
Kshitij Patil
11/11/2020, 4:17 PMRafs
11/11/2020, 4:34 PMImage
in compose?tcracknell
11/11/2020, 6:06 PMEric Ampire [MOD]
11/11/2020, 7:34 PMjaqxues
11/11/2020, 7:51 PMjava.lang.IllegalArgumentException: Invalid slot table detected
Rafs
11/11/2020, 9:21 PMImageAsset
from a Bitmap
object?Rafs
11/11/2020, 9:21 PMImageAsset
from a Bitmap
object?Ian Lake
11/11/2020, 10:35 PMRafs
11/11/2020, 10:52 PMVectorAsset
created with vectorResource(..)
into an ImageAsset
?Ian Lake
11/12/2020, 12:22 AMImageAsset
should have another overload that takes a VectorAsset
(that's how Icon
works for instance). I know there's been some recent work in this space - maybe @Nader Jawad has more info?Rafs
11/12/2020, 12:24 AMdrawImage
but it's only accepting an ImageAsset
and not a VectorAsset
Nader Jawad
11/12/2020, 12:32 AMrememberVectorPainter(myVectorAsset)
within a composable methodRafs
11/12/2020, 12:40 AMcb
11/12/2020, 7:31 AM