diff --git a/textfield-unit/src/main/java/de/charlex/compose/material3/TextFieldColors.kt b/textfield-unit/src/main/java/de/charlex/compose/material3/TextFieldColors.kt index 4012a3f..a89fb4d 100644 --- a/textfield-unit/src/main/java/de/charlex/compose/material3/TextFieldColors.kt +++ b/textfield-unit/src/main/java/de/charlex/compose/material3/TextFieldColors.kt @@ -9,7 +9,6 @@ import androidx.compose.runtime.getValue import androidx.compose.runtime.rememberUpdatedState import androidx.compose.ui.graphics.Color - @Immutable class TextFieldColors constructor( val focusedTextColor: Color, @@ -156,4 +155,4 @@ class TextFieldColors constructor( result = 31 * result + errorLabelColor.hashCode() return result } -} \ No newline at end of file +} diff --git a/textfield-unit/src/main/java/de/charlex/compose/material3/TextFieldDefaults.kt b/textfield-unit/src/main/java/de/charlex/compose/material3/TextFieldDefaults.kt index 1ab705a..8b31dc2 100644 --- a/textfield-unit/src/main/java/de/charlex/compose/material3/TextFieldDefaults.kt +++ b/textfield-unit/src/main/java/de/charlex/compose/material3/TextFieldDefaults.kt @@ -5,14 +5,13 @@ import androidx.compose.runtime.Composable import androidx.compose.runtime.Immutable import androidx.compose.ui.graphics.Color - @Immutable object TextFieldDefaults { @Composable fun colors( focusedTextColor: Color = MaterialTheme.colorScheme.onSurface, unfocusedTextColor: Color = MaterialTheme.colorScheme.onSurface, - disabledTextColor: Color = MaterialTheme.colorScheme.onSurface + disabledTextColor: Color = MaterialTheme.colorScheme.onSurface .copy(alpha = 0.38f), errorTextColor: Color = MaterialTheme.colorScheme.onSurface, cursorColor: Color = MaterialTheme.colorScheme.primary, @@ -53,4 +52,4 @@ object TextFieldDefaults { disabledLabelColor = disabledLabelColor, errorLabelColor = errorLabelColor ) -} \ No newline at end of file +} diff --git a/textfield-unit/src/main/java/de/charlex/compose/material3/TextFieldWithUnit.kt b/textfield-unit/src/main/java/de/charlex/compose/material3/TextFieldWithUnit.kt index 2dc2ba7..73545a3 100644 --- a/textfield-unit/src/main/java/de/charlex/compose/material3/TextFieldWithUnit.kt +++ b/textfield-unit/src/main/java/de/charlex/compose/material3/TextFieldWithUnit.kt @@ -59,7 +59,6 @@ import kotlin.Int import kotlin.Long import kotlin.String - @OptIn(ExperimentalMaterial3Api::class) @Suppress("UNCHECKED_CAST") @Composable