Colton Idle
05/06/2021, 1:11 PMColton Idle
05/06/2021, 1:11 PMColumn(Modifier.padding(16.dp).fillMaxWidth()) {
Column(
Modifier.fillMaxWidth(),
) {
Text(
modifier = Modifier.fillMaxWidth(),
text = loremText,
textAlign = TextAlign.Center,
maxLines = 1,
overflow = TextOverflow.Ellipsis,
)
Spacer(Modifier.height(12.dp).
Text(
modifier = Modifier.fillMaxWidth(),
text = loremText,
textAlign = TextAlign.Center,
maxLines = 3,
overflow = TextOverflow.Ellipsis,
)
}
}
robnik
05/06/2021, 1:24 PMSpacer(Modifier.height(12.dp)
.Colton Idle
05/06/2021, 1:27 PMColton Idle
05/06/2021, 1:30 PMrobnik
05/06/2021, 1:36 PMVsevolod Ganin
05/06/2021, 1:39 PMtextAlign
but that was still in some alphaColton Idle
05/06/2021, 1:43 PMColton Idle
05/06/2021, 4:34 PMsetContent {
AppTheme {
Column(Modifier.padding(16.dp).fillMaxWidth()) {
Spacer(Modifier.height(120.dp))
Column(
Modifier.fillMaxWidth(),
) {
Text(
modifier = Modifier.fillMaxWidth(),
text = "asdf ".repeat(100),
textAlign = TextAlign.Center,
maxLines = 1,
overflow = TextOverflow.Ellipsis,
)
Spacer(Modifier.height(12.dp))
Text(
modifier = Modifier.fillMaxWidth(),
text = "asdf ".repeat(100),
textAlign = TextAlign.Center,
maxLines = 3,
overflow = TextOverflow.Ellipsis,
)
}
}
}
}
this has the issue, but if I remove my wrapping AppTheme, then there's no issues.
This is AppTheme. Anyone have any ideas what could be going on?
@Composable
fun AppTheme(darkTheme: Boolean = isSystemInDarkTheme(), content: @Composable () -> Unit) {
val colors = if (darkTheme) DarkColorPalette else LightColorPalette
ProvideAppColors(colors) {
MaterialTheme(content = content)
}
}
@Adam Powell I suppose I'll file a bug, but maybe I'm doing something silly here?Colton Idle
05/06/2021, 4:50 PMSiyamed
05/06/2021, 5:09 PMSiyamed
05/06/2021, 5:09 PMSiyamed
05/06/2021, 5:10 PMSiyamed
05/06/2021, 5:10 PMSiyamed
05/06/2021, 5:10 PMSiyamed
05/06/2021, 5:19 PMColton Idle
05/06/2021, 5:29 PMSiyamed
05/06/2021, 6:56 PMSiyamed
05/06/2021, 6:56 PMSiyamed
05/06/2021, 6:56 PMColton Idle
05/06/2021, 6:58 PMSiyamed
05/06/2021, 6:58 PMSiyamed
05/06/2021, 6:58 PMSo is this one of those bugs that will never be fixed sort of thing?A few options: 1 - will work after Android S/T 2 - might work after Android O 3 - requires native (c++) code to be embedded into Compose, which I do not know if will happen or when will happen. no ideas there.
Siyamed
05/06/2021, 7:00 PMColton Idle
05/06/2021, 7:02 PMSiyamed
05/06/2021, 7:03 PMColton Idle
05/06/2021, 7:03 PMSiyamed
05/06/2021, 7:06 PMColton Idle
05/06/2021, 7:07 PM