You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've been seeing jank in our list of items (with hundreds of items), and tracked it down to the trailingAccessoryContent. Removing trailingAccessoryContent makes the list scroll very fast. Our trailingAccessoryContent is also a single Fluent button, so it's really nothing super intense, and I was also able to repro with a vanilla Material button with not much in it. Interestingly, using a text view of a constant string ("hi") is also very fast.
From the Profile Trace via AS, it says the "measureAndLayout()" step is taking a long time, which is what also led me down this investigation path.
< Fluent Version 1.30.0 >
Behavior
Case 1 - TrailingAccessoryContent with Fluent Button - Jank
We've been seeing jank in our list of items (with hundreds of items), and tracked it down to the trailingAccessoryContent. Removing trailingAccessoryContent makes the list scroll very fast. Our trailingAccessoryContent is also a single Fluent button, so it's really nothing super intense, and I was also able to repro with a vanilla Material button with not much in it. Interestingly, using a text view of a constant string ("hi") is also very fast.
From the Profile Trace via AS, it says the "measureAndLayout()" step is taking a long time, which is what also led me down this investigation path.
< Fluent Version 1.30.0 >
Behavior
trailingAccessoryContent = { Button(onClick = { }, text = "hi") { }}
trailingAccessoryContent = { androidx.compose.material3.Button(onClick = { /*TODO*/ }) { }}
trailingAccessoryContent = { Text("hi")}
Relevant code / code in question - ListItem, line 411
The text was updated successfully, but these errors were encountered: