File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
app/src/main/java/to/bitkit/ui/components Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ fun BodyM(
127127 color : Color = MaterialTheme .colorScheme.primary,
128128 textAlign : TextAlign = TextAlign .Start ,
129129 maxLines : Int = Int .MAX_VALUE ,
130+ minLines : Int = 1,
130131 overflow : TextOverflow = if (maxLines == 1) TextOverflow .Ellipsis else TextOverflow .Clip ,
131132) {
132133 BodyM (
@@ -135,6 +136,7 @@ fun BodyM(
135136 modifier = modifier,
136137 textAlign = textAlign,
137138 maxLines = maxLines,
139+ minLines = minLines,
138140 overflow = overflow,
139141 )
140142}
@@ -146,6 +148,7 @@ fun BodyM(
146148 color : Color = MaterialTheme .colorScheme.primary,
147149 textAlign : TextAlign = TextAlign .Start ,
148150 maxLines : Int = Int .MAX_VALUE ,
151+ minLines : Int = 1,
149152 overflow : TextOverflow = if (maxLines == 1) TextOverflow .Ellipsis else TextOverflow .Clip ,
150153) {
151154 Text (
@@ -155,6 +158,7 @@ fun BodyM(
155158 textAlign = textAlign,
156159 ),
157160 maxLines = maxLines,
161+ minLines = minLines,
158162 overflow = overflow,
159163 modifier = modifier,
160164 )
You can’t perform that action at this time.
0 commit comments