Answers for "set initial text in textfield flutter"

2

textfield set value flutter

/// You can use a [TextFormField] instead of [TextField]
/// and use the [initialValue] property. for example:

TextFormField(initialValue: "I am smart")
Posted by: Guest on September-23-2020
0

change text in text feild flutter

TextField(
      controller: txt,
    ),
    RaisedButton(onPressed: () {
        txt.text = "My Stringt";
    }),
Posted by: Guest on April-20-2021

Code answers related to "set initial text in textfield flutter"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language