From 89799f75ab1215508ee591386b3ed3fc50295aec Mon Sep 17 00:00:00 2001 From: Govind Dixit Date: Mon, 18 Dec 2023 01:02:16 +0530 Subject: [PATCH] chore(datastore): update composeMaterial3Version (#298) * chore(datastore): update composeMaterial3Version and OutlinedTextField:colors method signature * chore(datastore): ktlint --------- Co-authored-by: govinddixit --- dependencies.gradle | 2 +- .../datastore/pref/internal/compose/DisplayComponents.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dependencies.gradle b/dependencies.gradle index 8591d5074..7694b75b1 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -14,6 +14,6 @@ ext { navigationVersion = '2.4.1' composeCompileVersion = '1.4.7' composeVersion = '1.4.0' - composeMaterial3Version = '1.0.1' + composeMaterial3Version = '1.1.2' } \ No newline at end of file diff --git a/pluto-plugins/plugins/datastore/lib/src/main/java/com/pluto/plugins/datastore/pref/internal/compose/DisplayComponents.kt b/pluto-plugins/plugins/datastore/lib/src/main/java/com/pluto/plugins/datastore/pref/internal/compose/DisplayComponents.kt index a33a9e6c7..8ad74357d 100644 --- a/pluto-plugins/plugins/datastore/lib/src/main/java/com/pluto/plugins/datastore/pref/internal/compose/DisplayComponents.kt +++ b/pluto-plugins/plugins/datastore/lib/src/main/java/com/pluto/plugins/datastore/pref/internal/compose/DisplayComponents.kt @@ -18,8 +18,8 @@ import androidx.compose.foundation.text.KeyboardOptions import androidx.compose.material3.Divider import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.OutlinedTextField +import androidx.compose.material3.OutlinedTextFieldDefaults import androidx.compose.material3.Text -import androidx.compose.material3.TextFieldDefaults import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect import androidx.compose.runtime.MutableState @@ -189,7 +189,7 @@ private fun EditableField( onValueChange = { input -> newValue.value = input }, - colors = TextFieldDefaults.outlinedTextFieldColors( + colors = OutlinedTextFieldDefaults.colors( focusedBorderColor = colorResource(id = R.color.pluto___text_dark_60), unfocusedBorderColor = colorResource(id = R.color.pluto___text_dark_20) ),