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
Right now we have separate loading methods to resolve either an ImageBitmap or an ImageVector. We should make this easier and have a single method that consumes a resource identifier and returns a Painter. That way developers can write code that is not concerned with the type of asset they are attempting to draw (similar to context.getDrawable(resId))
For example we should be able to write the following code: