Questions tagged [flutter-textinputfield]

88 questions
18
votes
2 answers

Flutter: Prevent to call onChange of TextField when Keyboard hide (Back Press)

I am working on Flutter, Calling API based on Search Parameters. What I have done is: Search Box created using TextField onChange of that TextField, I have called method to get data from server. ListView displaying a list Problem: When I hide the…
Pratik Butani
  • 60,504
  • 58
  • 273
  • 437
4
votes
1 answer

Copy and Paste not working in TextFormField & TextField in Flutter

Solved: COPY & PASTE Not Working in TextFormField Found out that I was using Listener's onPointerDown Method to remove focus if the user clicks anywhere else in the App. But this was causing the error. But the problem is now how to remove focus if…
DIVYANSHU SAHU
  • 1,035
  • 11
  • 24
3
votes
2 answers

How to do ElevatedButton disabled?

I want the button to be inactive until 10 characters are entered in the field. When 10 characters were entered, the button was active. And when it is inactive it is gray, and when it is active it is blue. How can I do that? Here is the input code…
userName
  • 903
  • 2
  • 20
3
votes
3 answers

TextField and BLoC - value not updated or keyboard dismissed

I want to use a TextField in combination with BLoC package in Flutter. The aim is to keep the content of the TextField in sync with the respective property of the BLoC. Because BLoC is based on a BlocBuilder widget that basically subscribes to a…
Schnodderbalken
  • 3,257
  • 4
  • 34
  • 60
3
votes
2 answers

Invalid constant value.dart(invalid_constant)

in the bellow code I got the error on " controller: urlController," this line var url; final urlController = TextEditingController(); @override void dispose() { urlController.dispose(); super.dispose(); …
3
votes
0 answers

Double Inputs In TextField When Running On Desktop

I have a simple TextField available Here. It works as expected on the web, but when I run the app on Windows desktop, the TextField inputs the character twice. For example, when I typed x and 1 I see xx11. This is an intermittent problem but…
2
votes
1 answer

How to change TextField border color at onChanged (change character) in flutter?

I need to change textfield border color while changing characters based on email or phone validation. For Example : When typing an incomplete email at the time border color is set to RED, after completing typing the email at that time border color…
Furkan
  • 306
  • 4
  • 17
2
votes
2 answers

Flutter for Windows - A KeyRepeatEvent is dispatched, but the state shows that the physical key is not pressed - Shift Left

I'm building a Flutter Application for Windows. I have a TextField and if I run the Application and want to insert an uppercase Character by holding Shift Left or Shift Right and than a letter, I get the following Error: The following assertion was…
F.M.
  • 630
  • 1
  • 5
  • 18
2
votes
0 answers

Flutter focus textfield without opening softkeyboard?

I'm getting input to my textfield from barcode scanner so I dont need softkeyboard to open when textfield in focus.To achieve that I tried TextInputType.none it hides the keyboard but also can't receive input from scanner. TextField( …
Kokila
  • 242
  • 1
  • 13
2
votes
2 answers

Textformfiled flutter: prefix and suffix not in line with the content

The textformfiled i want and My textformfield now I'm trying create a search field like this.(attach this link) but the suffix, prefix icon not align with content I am also attaching the code that I am using for this TextFormfield: Container( …
anhdhq
  • 35
  • 4
2
votes
1 answer

Flutter. Is it possible to change TextFormField errorText padding?

I'm using TextFormField with OutlineInputBorder. I need the text inside to have padding on the right and left. For this I'm using: contentPadding: const EdgeInsets.symmetric(vertical: 4, horizontal: 8), Everything works well. However, I also use a…
2
votes
1 answer

Flutter: How can i put Textfield input into a list to build a ListView.builder

Im trying to build a listviewbuilder since a few days. For that i need the textfield input from another screen. I looked a lot of tutorials and question but it doesnt work.Im trying to put the input from multiple textfields into multiple lists to…
Eric Philippi
  • 35
  • 1
  • 6
1
vote
1 answer

How to have a `TextField`'s label that wraps if too long?

I'm trying to have a long TextField's label that doesn't overflow but wraps. If I use InputDecoration({String labelText}), the label overflows: TextField( decoration: InputDecoration( labelText: 'Very veryy veryyy veryyyy veryyyyy long loong…
1
vote
3 answers

How to set style for a text field label when the input is active?

On the image below the Demo Text label by default a little bit small. I tried to change labelSmall and labelMedium styles but it doesn't work for that. What style is responsible for that?
rozerro
  • 5,787
  • 9
  • 46
  • 94
1
vote
1 answer

How to hide password entry in flutter?

I am making a Flutter application. I set the login and registration processes. But since I get the password as a string when I enter the password, what can I do to make the password appear as a star on the screen? I used firebase authentication for…
Jiddo
  • 23
  • 3
1
2 3 4 5 6