when ever i use the Text() function it shows the error to that ->
None of the following functions can be called with the arguments supplied.
Text(AnnotatedString, Modifier = …, Color = …, TextUnit = …, FontStyle? = …, FontWeight? = …, FontFamily? = …, TextUnit = …, TextDecoration? = …, TextAlign? = …, TextUnit = …, TextOverflow = …, Boolean = …, Int = …, Int = …, Map<String, InlineTextContent> = …, (TextLayoutResult) → Unit = …, TextStyle = …)
i try to create the seperate function for this is but the text text field does not get executed.
fun Text(s: String, Style: TextStyle) {
}
although error gets removed by using seperate function.
Shahid Faried is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.