Fixed
Status Update
Comments
ma...@google.com <ma...@google.com>
mo...@google.com <mo...@google.com>
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
These would mirror the
Color.isSpecified
,Color.isUnspecified
, andColor.useOrElse
helper functions, which are useful when dealing withColor
s that could potentially beColor.Unspecified
.If this request is accepted, it might be worth auditing the rest of the Compose libraries (to see if there are any similar types that define
Unspecified
values)