@@ -30,6 +30,7 @@ import androidx.compose.runtime.remember
30
30
import androidx.compose.ui.Alignment
31
31
import androidx.compose.ui.Modifier
32
32
import androidx.compose.ui.draw.alpha
33
+ import androidx.compose.ui.graphics.Color
33
34
import androidx.compose.ui.graphics.SolidColor
34
35
import androidx.compose.ui.res.dimensionResource
35
36
import androidx.compose.ui.res.painterResource
@@ -223,7 +224,11 @@ fun FieldEditValue(
223
224
text : String ,
224
225
onValueChange : (String ) -> Unit ,
225
226
modifier : Modifier = Modifier ,
226
- colors : TextFieldColors = TextFieldDefaults .textFieldColors(),
227
+ colors : TextFieldColors = TextFieldDefaults .textFieldColors(
228
+ backgroundColor = Color .Transparent ,
229
+ focusedIndicatorColor = Color .Transparent ,
230
+ unfocusedIndicatorColor = Color .Transparent
231
+ ),
227
232
interactionSource : MutableInteractionSource = remember { MutableInteractionSource () },
228
233
) {
229
234
BasicTextField (
@@ -252,7 +257,12 @@ fun FieldEditValue(
252
257
},
253
258
enabled = true ,
254
259
singleLine = true ,
255
- visualTransformation = VisualTransformation .None
260
+ visualTransformation = VisualTransformation .None ,
261
+ colors = TextFieldDefaults .textFieldColors(
262
+ backgroundColor = Color .Transparent ,
263
+ focusedIndicatorColor = Color .Transparent ,
264
+ unfocusedIndicatorColor = Color .Transparent
265
+ )
256
266
)
257
267
}
258
268
)
0 commit comments