juliocbcotta
06/09/2021, 3:23 PMText(
text = text,
modifier = Modifier.padding(top = 12.dp),
textStyle = style,
)
I get the error
None of the following functions can be called with the arguments supplied:
public fun Text(text: AnnotatedString, modifier: Modifier = ..., color: Color = ..., fontSize: TextUnit = ..., fontStyle: FontStyle? = ..., fontWeight: FontWeight? = ..., fontFamily: FontFamily? = ..., letterSpacing: TextUnit = ..., textDecoration: TextDecoration? = ..., textAlign: TextAlign? = ..., lineHeight: TextUnit = ..., overflow: TextOverflow = ..., softWrap: Boolean = ..., maxLines: Int = ..., inlineContent: Map<String, InlineTextContent> = ..., onTextLayout: (TextLayoutResult) -> Unit = ..., style: TextStyle = ...): Unit defined in androidx.compose.material
public fun Text(text: String, modifier: Modifier = ..., color: Color = ..., fontSize: TextUnit = ..., fontStyle: FontStyle? = ..., fontWeight: FontWei
Any way to fix it ?Zach Klippenstein (he/him) [MOD]
06/09/2021, 3:28 PMtextStyle
. It’s called just style
.juliocbcotta
06/09/2021, 3:31 PMZach Klippenstein (he/him) [MOD]
06/09/2021, 3:37 PMZach Klippenstein (he/him) [MOD]
06/09/2021, 3:37 PMColton Idle
06/09/2021, 8:06 PMjuliocbcotta
06/10/2021, 1:08 PM