nuhkoca
10/05/2022, 3:13 PMMini
10/05/2022, 3:33 PMEganathan R
10/05/2022, 3:40 PMreactormonk
10/05/2022, 4:53 PMRick Regan
10/05/2022, 6:14 PMLazyColumn
with itemsIndexed
with keys and have Modifier.animateItemPlacement()
on my items. The list of items is immutable inside a mutableStateOf(). I can delete items one at a time (replacing with a new immutable list) and the animations appear to work as expected. However, I am confused by this comment from the documentation on animateItemPlacement(): “Aside from reorderings, item animations for additions and removals is currently in development.” (I am using Compose 1.3.0-beta03 and Material 3 1.0.0-beta03, the version prior to what just came out today.) Is that note out of date, does it not apply to my case, or am I just lucky?Simon Wanbua
10/05/2022, 6:21 PMpointerInput
modifier with detectTapGestures
to your Parent layout. However, this can get messy when reusing the textfield in multiple places. Any suggestions around this?Ahaisting
10/05/2022, 7:36 PM.animateContentSize()
works when expanding content, but not when contracting/shrinking it?
details and example in thread 🧵👇Paul Woitaschek
10/05/2022, 8:33 PMVersion 1.0.0-beta03 contains these commits.Was that on purpose? 🤔
Afzal Najam
10/06/2022, 2:19 AMScott Kruse
10/06/2022, 3:49 AMzt
10/06/2022, 4:58 AMcoooldoggy
10/06/2022, 5:13 AMlilypuchi
10/06/2022, 6:31 AM"Hyphenation \u00AD is here!"
to see any behavior changes. Couldn’t figure it out though 🥲 〜 Am I missing something ?Slackbot
10/06/2022, 8:10 AMDjaka Pradana Jaya Priambudi
10/06/2022, 11:26 AModay
10/06/2022, 11:57 AMdata class EventsState(
val events: List<EventComponent> = listOf(),
val isLoading: Boolean = true,
val errors: Errors = Errors.None
)
back in my switch case, I have a case for isLoading
, another case for events.isNotEmpty()
, another for errors.throwable != null
and the final else
where I’m assuming the events list is empty
the issue is, when I first load up, and while the events list is coming back, I get the empty state
why is that? isLoading
starts off as true and the only time it becomes false is when the events come back, I update the state along with the isLoading in 1 go, when is it getting the chance to fall into the else?
eventsState.value =
eventsState.value.copy(events = it, isLoading = false, errors = Errors.None)
willyrs
10/06/2022, 12:24 PM@Composable
fun A() { }
@Composable
fun B() {}
I start in A, then I navController.navigate() to B. Then, I go back by pressing the back button and A is recreated from scratch, as the LifecycleEventObservers passes the on_create, on_start and on_resume, like this:
A: ON_CREATE
A: ON_START
A: ON_RESUME
navigating to B
B: ON_CREATE
B: ON_START
B: ON_RESUME
back button
A: ON_CREATE
A: ON_START
A: ON_RESUME
Is there something wrong in my code, or is this the expected behaviour? I don't want A to be recreated every time I go back to itjannis
10/06/2022, 1:51 PMczuckie
10/06/2022, 10:14 PMComposeView()
but getting: java.lang.IllegalStateException: ViewTreeLifecycleOwner not found from androidx.appcompat.widget.AlertDialogLayout
Colton Idle
10/07/2022, 1:54 AMArrayIndexOutOfBoundsException
coming from the slot table (b/249076084)
• Fixed LazyColumn
memory leak - onModifierLocalsUpdated
was not being called with the default value when modifiers were reused (b/230168389)
Old-ish... but just a reminder that Version 1.3.2 supports Kotlin 1.7.20Jialiwei2011
10/07/2022, 4:14 AMZoltan Demant
10/07/2022, 4:20 AMKey "..." was already used. If you are using LazyColumn/Row please make sure you provide a unique key for each item.
For crashes like these, is there any work being done to improve the stack traces? I have a billion LazyColumn/Rows in my project, and while the error message explains the issue perfectly, I have zero insight into where it actually happens.Grigory Panko
10/07/2022, 4:42 AMAaron Waller
10/07/2022, 10:43 AMDropdownMenu(
expanded = showMenu,
onDismissRequest = { showMenu = false }) {
DropdownMenuItem(onClick = {
}) {
Text(text = "Share")
}
}
This is inside my PostItem which is inside my LazyVerticalGrid.
Unfortunately, this is causing a huge frame drop because all the AsyncImages contained in the PostItems are recomposed.Rizwan Minhas
10/07/2022, 11:39 AMAhaisting
10/07/2022, 2:22 PM.swipeable
modifier. I got this component working just by modifying the example from the docs!
the issue is that the swipeable row also needs to be clickable, but when I use .clickable
and .swipeable
together, I’m seeing a ripple show when swiping is being invoked.
anyone have a hunch about an idiomatic way around this?Afzal Najam
10/07/2022, 5:34 PMwithFrameMillis
to withInfiniteAnimationFrameMillis
, in the code, the UI test passed and the Node tree was correct.
My question is, is this a bug I should file?Vlad Ostaci
10/07/2022, 6:09 PMSebastian Höbarth
10/07/2022, 6:51 PMModalBottomSheetLayout
and bottomSheet
from Accompanist. Does someone know if there is a support for foldables/large screens? The M3 guidelines suggest a max width of 640dp
, but I can’t seem to figure out where to set it. Is there a best practice example somewhere? Thanks for your helpRonald Toshkollari
10/07/2022, 8:15 PM