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
Image and Painter APIs in compose consume a ContentScale parameter to determine how to scale the drawing contents uniformly about the size of the composable they are drawing within.
However, there have been some feature requests to scale content in a non-uniform manner similar to the framework API's ScaleType.FIT_XY API. We should come up with a way to support non-uniform scaling.
Following feature requests: