Fixed
Status Update
Comments
ml...@google.com <ml...@google.com> #3
Thanks for the report!
pr...@google.com <pr...@google.com> #4
The release notes documentation has been edited to clarify this change in behavior for line height.
To support non-standard text sizes, we encourage users to follow the Material design system and use a different style = LocalTextStyle.current.copy(lineHeight = TextUnit.Unspecified)
, or create a custom Typography
entirely.
Description
Adding a
scrollBehavior
to aTopAppBar
causes theinnerPadding
property to recompose with the layout changes of the appbar. TheinnerPadding
propery is then passed into thecontent
lambda, which is read in composition and therefore recomposing thecontent
on every frame causing huge performance issue givenScaffold
is used usually per-screen.Deferring reading the
innerPadding
in the userland code doesn't fix the issue.Reproducible snippet:
This behavior also affects
material.Scaffold
, which can be fixed as well.