Fixed
Status Update
Comments
cl...@google.com <cl...@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
Jetpack Compose release version: 1.0.0-beta01 Android Studio Build:Android Studio Arctic Fox | 2020.3.1 Canary 8 Build #AI-203.7148.57.2031.7165533, built on February 23, 2021
Expected
I want to add vertical content padding to a
LazyColumn
:Actual
The
horizontal
parameter does not have a default value and therefore the following, more verbose code needs to be written.The following builder functions are provided for
PaddingValues
:Potential solution
Add default values to the existing builder function.
The semantics of not passing any parameters, i.e.
PaddingValues()
, do not change.