Renamed AutocompleteTextFieldNew to AutocompleteTextField
This commit is contained in:
parent
cd1465f144
commit
8005b44309
|
@ -70,7 +70,7 @@ fun AddAccountDialog(
|
|||
) {
|
||||
Column {
|
||||
|
||||
AutocompleteTextFieldNew(
|
||||
AutocompleteTextField(
|
||||
onSelectedItemChanged = { selectedBank = it },
|
||||
label = "Bank (Suche mit Name, Bankleitzahl oder Ort)",
|
||||
getItemTitle = { bank -> bank.name },
|
||||
|
|
|
@ -21,7 +21,7 @@ import net.codinux.banking.ui.IOorDefault
|
|||
import net.codinux.banking.ui.composables.BankIcon
|
||||
import net.codinux.banking.ui.config.Colors
|
||||
import net.codinux.banking.ui.config.DI
|
||||
import net.codinux.banking.ui.forms.AutocompleteTextFieldNew
|
||||
import net.codinux.banking.ui.forms.AutocompleteTextField
|
||||
import net.codinux.banking.ui.forms.OutlinedTextField
|
||||
import net.codinux.banking.ui.forms.Select
|
||||
import net.codinux.banking.ui.model.error.ErroneousAction
|
||||
|
@ -132,7 +132,7 @@ fun TransferMoneyDialog(
|
|||
}
|
||||
|
||||
Column(Modifier.padding(top = verticalSpace)) {
|
||||
AutocompleteTextFieldNew(
|
||||
AutocompleteTextField(
|
||||
"Name des Empfängers / der Empfängerin",
|
||||
dropdownMaxHeight = 350.dp,
|
||||
minTextLengthForSearch = 0,
|
||||
|
@ -192,8 +192,8 @@ fun TransferMoneyDialog(
|
|||
|
||||
Spacer(modifier = Modifier.height(verticalSpace))
|
||||
|
||||
AutocompleteTextFieldNew(
|
||||
"Verwendungszweck",
|
||||
AutocompleteTextField(
|
||||
"Verwendungszweck (optional)",
|
||||
dropdownMaxHeight = 250.dp,
|
||||
minTextLengthForSearch = 0,
|
||||
getItemTitle = { suggestion -> suggestion.reference },
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
package net.codinux.banking.ui.forms
|
||||
|
||||
import androidx.compose.foundation.clickable
|
||||
import androidx.compose.foundation.interaction.MutableInteractionSource
|
||||
import androidx.compose.foundation.layout.*
|
||||
import androidx.compose.material.*
|
||||
import androidx.compose.material.icons.Icons
|
||||
|
@ -9,18 +8,16 @@ import androidx.compose.material.icons.filled.Close
|
|||
import androidx.compose.runtime.*
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.focus.*
|
||||
import androidx.compose.ui.platform.LocalSoftwareKeyboardController
|
||||
import androidx.compose.ui.unit.Dp
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.window.PopupProperties
|
||||
import kotlinx.coroutines.Job
|
||||
import kotlinx.coroutines.delay
|
||||
import kotlinx.coroutines.launch
|
||||
import net.codinux.banking.ui.config.Colors
|
||||
|
||||
@OptIn(ExperimentalMaterialApi::class)
|
||||
@Composable
|
||||
fun <T> AutocompleteTextFieldNew(
|
||||
fun <T> AutocompleteTextField(
|
||||
label: String,
|
||||
onSelectedItemChanged: (T?) -> Unit,
|
||||
onEnteredTextChanged: ((String) -> Unit)? = null,
|
Loading…
Reference in New Issue