@@ -25,39 +25,37 @@ internal fun SharePublicRow(
2525 modifier : Modifier = Modifier ,
2626 singleLineValue : Boolean = true,
2727) {
28- Column {
29- Row (
30- verticalAlignment = Alignment .Top ,
31- horizontalArrangement = Arrangement .spacedBy(16 .dp),
32- modifier = modifier,
28+ Row (
29+ verticalAlignment = Alignment .Top ,
30+ horizontalArrangement = Arrangement .spacedBy(16 .dp),
31+ modifier = modifier,
32+ ) {
33+ Column (
34+ modifier = Modifier
35+ .weight(1f )
36+ .padding(top = 8 .dp)
3337 ) {
34- Column (
35- modifier = Modifier
36- .weight(1f )
37- .padding(top = 8 .dp)
38- ) {
39- Text (
40- text = label,
41- style = MaterialTheme .typography.bodySmall,
42- color = MaterialTheme .colorScheme.onSurfaceVariant.copy(
43- alpha = 0.6f
44- ),
45- modifier = Modifier .fillMaxWidth(),
46- )
47- Text (
48- text = value,
49- style = MaterialTheme .typography.bodyLarge,
50- color = MaterialTheme .colorScheme.onSurface,
51- maxLines = if (singleLineValue) 1 else Int .MAX_VALUE ,
52- overflow = if (singleLineValue) TextOverflow .Ellipsis else TextOverflow .Visible ,
53- modifier = Modifier .fillMaxWidth(),
54- )
55- }
56- Switch (
57- checked = checked,
58- onCheckedChange = onCheckedChange,
38+ Text (
39+ text = label,
40+ style = MaterialTheme .typography.bodySmall,
41+ color = MaterialTheme .colorScheme.onSurfaceVariant.copy(
42+ alpha = 0.6f
43+ ),
44+ modifier = Modifier .fillMaxWidth(),
45+ )
46+ Text (
47+ text = value,
48+ style = MaterialTheme .typography.bodyLarge,
49+ color = MaterialTheme .colorScheme.onSurface,
50+ maxLines = if (singleLineValue) 1 else Int .MAX_VALUE ,
51+ overflow = if (singleLineValue) TextOverflow .Ellipsis else TextOverflow .Visible ,
52+ modifier = Modifier .fillMaxWidth(),
5953 )
6054 }
55+ Switch (
56+ checked = checked,
57+ onCheckedChange = onCheckedChange,
58+ )
6159 }
6260}
6361
0 commit comments