henrikhorbovyi
06/02/2020, 11:19 PMLeland Richardson [G]
06/02/2020, 11:22 PMSiyamed
06/02/2020, 11:23 PMSiyamed
06/02/2020, 11:23 PMSiyamed
06/02/2020, 11:24 PMhenrikhorbovyi
06/02/2020, 11:25 PMhenrikhorbovyi
06/02/2020, 11:25 PMhenrikhorbovyi
06/02/2020, 11:25 PMhenrikhorbovyi
06/02/2020, 11:26 PMhenrikhorbovyi
06/02/2020, 11:26 PMSiyamed
06/02/2020, 11:26 PMhenrikhorbovyi
06/02/2020, 11:27 PMhenrikhorbovyi
06/02/2020, 11:55 PMVal Salamakha
06/03/2020, 10:40 AMTo 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, ...)
henrikhorbovyi
06/03/2020, 1:27 PMColton Idle
06/03/2020, 3:05 PMVal Salamakha
06/04/2020, 4:07 AMProbably 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.