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
{{ message }}
This repository was archived by the owner on Dec 27, 2024. It is now read-only.
MotionLayout(
start =StartConstraintSet(),
end =EndConstraintSet(),
progress =if (swipingState.progress.to ==SwipingStates.COLLAPSED) swipingState.progress.fraction else1f- swipingState.progress.fraction,
modifier =Modifier
.fillMaxWidth()
.height(height)
) {
Text(
text = title,
modifier =Modifier
.layoutId("title")
.wrapContentWidth(unbounded =true) // This is necessary because title's last letter was being clipped in both start and end
.wrapContentHeight(),
color =MaterialTheme.colors.onSurface,
fontWeight =FontWeight(motionInt("title", "fontWeight")),
fontSize = motionFontSize("title", "fontSize")
)
OptionsRow(
options = options,
modifier =Modifier
.layoutId("options")
.fillMaxWidth(.5f)
.padding(end =16.dp)
)
content(
Modifier
.layoutId("content")
)
}
This is a correctly rendered StartConstraintSet:
And this is a correctly rendered EndConstraintSet:
However, after the whole app bar is recomposed, title obtains what looks like a margin:
This doesn't happen when simply scaling the text, so it must be its bounding box returning to 32sp value from before the transformation. I cannot explain this behavior with anything else.