This error highlight does not stop
# compose
h
This error highlight does not stop
l
you seem to be trying to pass in a lambda as a value? this does not match the parameter’s type
There are some sample code in the above link
There was an issue related to imports required and studio sometimes not addint the import statements
Let me find those imports in case that is the issue fir the samples
h
@Leland Richardson [G] I tried a lot of things 😄
@Siyamed I'll check this docs
It worked
s
Awesome
h
Thank you \o/
👍 1
Last question about TextField 😄 How do I remove the bottom line?
v
Copy code
To remove the bottom line in FilledTextField, it needs to change 
in the function IconsTextFieldLayout the arguments of drawIndicatorLine as following:

IconsTextFieldLayout(
modifier = Modifier
   ...
.drawIndicatorLine(
lineWidth = if (activeColor == Color.Transparent) 0.dp else  indicatorWidth,
color =  if (activeColor == Color.Transparent) Color.Transparent else  if (isErrorValue) errorColor else indicatorColor )
//                                lineWidth = indicatorWidth,
//                                color = if (isErrorValue) errorColor else indicatorColor

and use 
        FilledTextFilled( ..., activeColor = Color.Transparent, ...)
🙌 1
h
@Val Salamakha It worked \o/
c
v
Copy code
Probably a better way to remove the bottom line in FilledTextField is to add an argument isIndicatorLine = true to it.   So the arguments drawIndicatorLine could be as following:

IconsTextFieldLayout(
modifier = Modifier
   ...
.drawIndicatorLine(
lineWidth = if (!isIndicatorLine) 0.dp else  indicatorWidth,
color =  if (!isIndicatorLine) Color.Unset else  if (isErrorValue) errorColor else indicatorColor )
//                                lineWidth = indicatorWidth,
//                                color = if (isErrorValue) errorColor else indicatorColor

and use 
        FilledTextFilled( ..., isIndicatorLine = false, ...)
Other functionality of the FilledTextField could be as is.