Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
Hi,
I also see my text cut off when I set maxLines = 2
. Is it the same issue?
Box(
modifier =
Modifier.size(
width = 108dp,
height = 34dp,
),
contentAlignment = Alignment.Center,
) {
BasicText(
text = "text text text",
maxLines = 2,
autoSize = AutoSize.StepBased(minFontSize = 1.sp, maxFontSize = 13.sp, stepSize = 0.2.sp),
)
}
Description
Currently there is a
Modifier.offset
overload that consumes 2 lambdas to return an x and y offset parameter. To support a trailing lambda syntax, it might be possible to refactor the API signature to the following:This would support trailing lambda syntax and help assist with the mental model of leveraging lambdas for animated use cases to avoid unnecessary composition