Skip to content

Commit

Permalink
Merge pull request #1 from veeresh-contineo/main
Browse files Browse the repository at this point in the history
added label to outline TextFiled
  • Loading branch information
Muratthekus committed Jan 10, 2023
2 parents 4495cd2 + 8a51b10 commit 044b6fb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ fun CurrencyTextField(
maxNoOfDecimal: Int = 2,
currencySymbol: String,
limit: Int = Int.MAX_VALUE,
label: @Composable (() -> Unit)? = null,
errorColor: Color = LocalTextStyle.current.color,
errorText: String? = null
) {
Expand Down Expand Up @@ -73,6 +74,7 @@ fun CurrencyTextField(
) {
OutlinedTextField(
value = textFieldState,
label = label,
modifier = modifier
.padding(horizontal = 10.dp)
.height(80.dp)
Expand Down Expand Up @@ -235,4 +237,4 @@ private fun checkDecimalSizeExceeded(
return (input.split(decimalFormatSymbols.decimalSeparator)
.getOrNull(1)?.length ?: Int.MIN_VALUE) > maxNoOfDecimal

}
}

0 comments on commit 044b6fb

Please sign in to comment.