Hi Professor, I fun Greeting() { Column(modifier = Modifier .fillMaxSize(), horizontalAlignment = Alignment.CenterHorizontally, verticalArrangement = Arrangement.Center ) { // error on this line (value = text, = { -> //Error on TextField as well as onValueChange, newText also... = //Error here also... }) } } Can you help please... Is there an option or import I am missing.
I don't know if this is the best way but it worked I've changed this line: var text by remember { mutableStateOf("") } to: var text by rememberSaveable { mutableStateOf("") }
@@StevdzaSan Ok, but do I make a ViewModel for every textFieald in my Application, Or should I put it in the viewModel that manages the usecase that the textField is involved in?
Love it when you show us different text field in the end of this video.
Thank yooooooooooou the best one 👌👌👌👌👌👌👌👌👌👌
Спасибо за отличный курс. Всего вам хорошего.❤❤❤
awesome, always deep and understandable explanation 👏
great video contains a lot of information, thank you
Thank you ❤
Nice one! Likes for this Guy!...ooookay!
Stefan, thanks a lot!
You're welcome 👊
I've a textfield in dialog that I am opening through compose navigation but whenever I try to type anything into it It erases that.
What about the cursor and selection style or behavior?
Very cool video thank you bro
Happy to help 🙌
bm: 11:27
Thank you . keep going
Damn right! 👊
Hi, how can we disable bottom line of the text when textfield has focus, not the indicator ?
new subscriber!
How to display hint in BasicTextField, stefan?
thank you sooooooooooo muchhhhhhh
Column(
modifier = Modifier
.fillMaxSize(),
horizontalAlignment = Alignment.CenterHorizontally,
verticalArrangement = Arrangement.Center
) {
val text = remember { mutableStateOf(TextFieldValue("Text")) }
OutlinedTextField(value = text.value,
onValueChange = { text.value = it },
label = { Text("Test") })
}
How to remove initial default padding before content in Text Field with XML it easy, how to achieve in Jetpack. ?
Hi Professor, I
fun Greeting() {
Column(modifier = Modifier
.fillMaxSize(),
horizontalAlignment = Alignment.CenterHorizontally,
verticalArrangement = Arrangement.Center
) {
// error on this line
(value = text, = { -> //Error on TextField as well as onValueChange, newText also...
= //Error here also...
})
}
}
Can you help please...
Is there an option or import I am missing.
can You Provide Login Page It Include Validation in Text Field?
how do you get search bar in Logcat?
I started learning today the Jetpack Compose, how do you save the TextField typed value when you rotate the screen?
I don't know if this is the best way but it worked
I've changed this line:
var text by remember {
mutableStateOf("") }
to:
var text by rememberSaveable {
mutableStateOf("") }
Yep that's one way. You can also hoist the state in a ViewModel.
Is it better to manage text fiealds with Viewmodel
or is that too much work for a simple thing ??
Yes state hoisting to view model is a preferred way.
@@StevdzaSan Ok, but do I make a ViewModel for every textFieald in my Application, Or should I put it in the viewModel that manages the usecase that the textField is involved in?
@@qusaiatoon2802 You can make a View Model per one screen of yours.
@@StevdzaSan Thanks for replying
You are a great developer And Teacher ❤
does this have a github repo
I hope to add video how to migrate from xml to compose
colors = TextFieldDefaults.colors(
focusedTextColor = Color.Black,
unfocusedTextColor = Color.Gray,
focusedContainerColor = Color.White,
unfocusedContainerColor = Color.White,
focusedIndicatorColor = Color.Blue,
unfocusedIndicatorColor = Color.Blue,
focusedLabelColor = Color.Gray,
unfocusedLabelColor = Color.Gray,
cursorColor = Color.Black,
)
.
ty
why did't use xml for the design
Jetpack compose has now replaced xml
background color don't work in textField
Very nice, I think it's better to make the android studio theme high contrast for better see
nice
❤
Thank to You Stevdza-san ( ノ ゚ー゚)ノ Keep Going