I am currently working with the jetpack compose text field. I tried adding a leading icon on the text field like below
leadingIcon = { Icon(Icons.Filled.Search) },
but the IDE highlighted that None of the following functions can be called with the arguments supplied. since the classIcon(). So I tried another option, shown below
leadingIcon = { (Icons.Filled.Search) },
There was no exception thrown so I assumed that it would work, but now the leading Icon is not visible. What could I be doing wrong?. Thanks in advance