brabo-hi
01/28/2022, 11:22 PMcomposable("profile/{userId}"){}
how to get the startDestination
to be something like NavHost(startDestination = "profile/42") {}
instead of having to navigate like navController.navigate("profile/42")
Colton Idle
01/29/2022, 5:24 AMtheapache64
01/29/2022, 9:35 AMjasu
01/29/2022, 10:33 AMtheapache64
01/29/2022, 1:13 PMadjpd
01/29/2022, 4:18 PMrememberSaveable {}
on a custom class that implements Parcelable
. This saves and restores the object on screen rotation perfectly. All the warning messages, however, tell me that this should not work. Can you help me understand the warning messages? And help me understand if I'm doing something wrong? Code and warnings in 🧵SrSouza
01/29/2022, 6:55 PMColton Idle
01/30/2022, 12:49 AMkotlin-extension - Configuration for Compose related kotlin compiler extension
\--- androidx.compose.compiler:compiler:1.0.5
Any idea what that is?Saiedmomen
01/30/2022, 10:14 AMjasu
01/30/2022, 12:20 PMSelect all
is selected, what to do?Jason Ankers
01/30/2022, 2:56 PMFlorian Walther (live streaming)
01/30/2022, 3:49 PMSwitch
outside of the Row
even though the code is inside the block?Kyant
01/30/2022, 3:54 PMMarcin Wisniowski
01/30/2022, 4:45 PMZun
01/30/2022, 6:23 PMadjpd
01/30/2022, 7:38 PMComposable
is needlessly being recomposed? I want to see if a Text
is recomposed for example.Marcin Wisniowski
01/30/2022, 8:08 PMtools:src
. The Accompanist version had a previewPlaceholder
. But after Compose support moved to the Coil library proper, it was removed. Are there any solutions?Shakil Karim
01/31/2022, 6:36 AMJonas Frid
01/31/2022, 7:44 AMUtkarsh Tiwari
01/31/2022, 8:30 AMAnastasia Rozovskaya
01/31/2022, 10:25 AMRick Regan
01/31/2022, 4:44 PMremember
. Is it better to do the former or the latter?Nick
01/31/2022, 4:54 PM<androidx.compose.ui.platform.ComposeView
android:id="@+id/myComposeView"
android:layout_width="10dp"
android:layout_height="10dp"
----> tools:composableName="" <------
/>
What is composableName
used for?myanmarking
01/31/2022, 5:18 PMbrabo-hi
01/31/2022, 6:36 PMshow/hide
of keyboard ?
val keyboardController = LocalSoftwareKeyboardController.current
keyboardController?.hide() // How to animate the visibility ?
rocketraman
01/31/2022, 6:41 PMval
rather than using a var
and delegates. But I'm trying to understand the Redditor's examples. Why doesn't the Draggable example work (assuming it doesn't, I haven't tried it)? Their explanation:
When Jetpack invokes the detectDragGestures callback, it's the same lambda instance. That means we never get the new values of offsetX and offsetY.But shouldn't
DraggableZone
and Draggable
recompose when the offset changes, thus getting new values of offsetX
and offsetY
in detectDragGestures
?blakelee
01/31/2022, 8:51 PMAndy Himberger
01/31/2022, 9:05 PMLandry Norris
01/31/2022, 10:16 PMdimsuz
02/01/2022, 12:10 AMIcon
results in Row with intrinsic height having a half-cut-out text. Sample in the thread.dimsuz
02/01/2022, 12:10 AMIcon
results in Row with intrinsic height having a half-cut-out text. Sample in the thread.Row(modifier = Modifier.width(180.dp).height(IntrinsicSize.Min)) {
Column(
modifier = Modifier.background(Color.Gray)
.weight(2/3f)
.fillMaxHeight()
) {
Icon(imageVector = Icons.Default.Check, contentDescription = null)
Text(text = "hello world and foo bar")
}
Column(
modifier = Modifier.background(Color.Green)
.weight(1/3f)
.fillMaxHeight()
) {
Icon(imageVector = Icons.Default.Check, contentDescription = null)
Text(text = "hello")
}
}
Modifier.size(24.dp)
to `Icon`s (or even remove them), then calculations seem to start to work:Row
fill max width and no modifiers on icons, then text even won't show up at all. only icons. It was very confusing initially.
Is this the expected behavior?Albert Chang
02/01/2022, 2:21 AM