Supress warning ModifierComposed for autofill, there is a low risk of performance issue here.

This commit is contained in:
Benoit Marty 2024-04-03 12:00:21 +02:00 committed by Benoit Marty
parent 000bcb448c
commit 07ca064ac4
2 changed files with 18 additions and 11 deletions

View file

@ -213,6 +213,7 @@ private fun TextFieldValueContentToPreview() {
}
}
@Suppress("ModifierComposed")
@OptIn(ExperimentalComposeUiApi::class)
fun Modifier.autofill(autofillTypes: List<AutofillType>, onFill: (String) -> Unit) = composed {
val autofillNode = AutofillNode(autofillTypes, onFill = onFill)