Jasmin Fajkic
11/04/2022, 8:18 PM"title": {
"text": "{0} shared a feeling",
"actions": [
{
"text": "Sara+021122",
"action": "test1",
"id": "9f714870-1c79-4398-ab0e-0b699d39606f"
}
],
"badgeName": "mood-level-4"
}
and now i need to construct from this :
“Sara+021122 shared a feeling” where Sara+021122 is clickable part of text. More in 🧵andrew
11/05/2022, 12:04 AMste
11/05/2022, 7:16 AMdetectVerticalDragGestures
and detectHorizontalDragGestures
overlap (i.e. they belong to different composables, but share the same touch source), how I can dispatch events to detectHorizontalDragGestures
only when the drag is very horizontal? When scrolling with our thumb, vertical swipes tend to be detected as horizontal ones
(images in thread)PHondogo
11/05/2022, 6:34 PMnlindberg
11/05/2022, 10:54 PMyogaboy
11/06/2022, 3:12 PMandrew
11/07/2022, 3:38 AMHasan Nagizade
11/07/2022, 4:28 AMDilraj Singh
11/07/2022, 8:42 AMA->B
and B->C
in succession, then the composable function will only get the update of state as C
, it will never get the state B
, whereas in every other place if I collect the state flow, then I will get 2 state updates, B
and C
. Is this an intended behaviour or some bug?
Code attached in thread.Christoph Wiesner
11/07/2022, 9:51 AMprivate var currentRoleSelection = mutableStateOf<UserRole>(null)
i want to have a initial selection for currentRoleSelection
(let's say the first role in the list)
but i have to wait for the userRoles to be queried from the DB
val uiState: StateFlow<UiState> = combine(
userRoles, // Flow<UserRole>
//other flows,
snapshotFlow { currentRole }
) { ... -> }
how would i set the mutableState once the DB roles are queried?
do i need to "convert" that userRoles to a state as well in order to use sth like derivedStateOf{}
?Abhijeet Kumar
11/07/2022, 10:14 AMTower Guidev2
11/07/2022, 1:41 PMiroyo
11/07/2022, 3:19 PMMarco Pierucci
11/07/2022, 4:36 PMZun
11/07/2022, 5:26 PMArjan van Wieringen
11/07/2022, 6:38 PMenighma
11/07/2022, 7:09 PMBilly Newman
11/07/2022, 8:39 PMKai Zhu
11/08/2022, 3:45 AMBlendMode
copied from Flutter’s? They are almost identical but Compose’s version lacks the example images, which makes this paragraph (in the red frame) confusing. If adding image links isn’t an option, maybe this paragraph can be deleted as an easy fix?
I was confused and searched Google, then found the Flutter doc. This was the beginning of the story.Yashwant Gowla
11/08/2022, 8:41 AMPardip
11/08/2022, 11:18 AMdave08
11/08/2022, 1:03 PMremember {}
or mutableStateOf()
inside state holders... or whether the one surrounding the object itself is enough....?Gonzalo Renedo
11/08/2022, 1:43 PMcould someone help me understand why this happens in recomposition count? It happens to me in all apps, I think it's an android bug
Gonzalo Renedo
11/08/2022, 1:44 PMtheapache64
11/08/2022, 2:08 PMViewModel
as @Stable
? What wud be the conditions to do that? (learning about Compose Stability)Stylianos Gakis
11/08/2022, 4:33 PMjava.lang.ArrayIndexOutOfBoundsException: src.length=16 srcPos=12 dst.length=16 dstPos=11 length=-7
(edit) Seems like movableContentOf + SubCompose still don’t play well with each other even after the 1.3 fix which should fix some of the problems this combo had.Chris Fillmore
11/08/2022, 7:13 PMPHondogo
11/08/2022, 10:39 PMluke_c
11/09/2022, 12:00 AMModalBottomSheetLayout
in a ComposeView
within the XML (child of a LinearLayout
) it crashes immediately unless I add it to the root of the View hierarchy with this error:
java.lang.IllegalArgumentException: The initial value must have an associated anchor.
Is this expected behaviour?aoriani
11/09/2022, 1:26 AMaoriani
11/09/2022, 1:26 AM