Questions tagged [flutter-textinputfield]
88 questions
0
votes
1 answer
How can I configure a Flutter TextField to take all text input?
I have precisely one TextField on the screen of my Flutter app. I want my Flutter app to both work on the desktop and on mobile.
Whenever the app is active I want all text input to go into the TextField. When the user clicks on the area outside of…

Christian
- 25,249
- 40
- 134
- 225
0
votes
2 answers
In Flutter, how can I create a shape like this XML shape I created in android java app
I created an android app in java and I had this xml shape in it:

Mike
- 137
- 1
- 2
- 10
0
votes
0 answers
Is there any way to dismiss Android keyboard on enter key pressed without loosing the textfield focus in Flutter?
Unsuccessful alternatives:
Unfocus current primary focus --> Loosing focus
Unfocus current primary focus and requesting focus again --> Keyboard gets opened again
Setting textInputAction to TextInputAction.done --> Loosing focus
* When keyboard is…

A.A
- 13
- 1
- 4
0
votes
0 answers
snapshot.data is not storing data in `allNotes` variable
When I type something in the TextField it is not stored in allNotes variable by the snapshot
Even if any input is given the snapshot.data doesnot store any data in allNotes
There are two different files one file take the input from the TextField and…

Vighnesh Mestry
- 1
- 2
0
votes
3 answers
How i fix username password email is null in flutter
I use widget StatefulWidget and _inputFiled
I've created a model class
class Profile {
String? email;
String? username;
String? password;
Profile({
this.email,
this.username,
this.password,
});
}
And using like
class…

JInSeok
- 1
- 2
0
votes
0 answers
Allow to enter only number 1 to 49 in the TextField in Flutter
I have a TextFiled in a Flatter app and I need it to only be able to enter a number from 1 to 49.
Thanks in advance for all the tips.
TextField(
controller: TextEditingController()
..text = (quantity ?? "").toString()
..selection =…

Laco
- 39
- 1
- 3
0
votes
2 answers
Flutter navigate to second screen and focus on Text field?
When I tap on a button I want to navigate to the second screen Focus on TextField(there is only one) and raise a keyboard.
I successfully focused when I taped on a widget on the same screen using FocusNode.

Mister MB Boss
- 1
- 1
0
votes
1 answer
The error message keeps resizing my textform field
I have wrapped a container and a sizedbox around the textform field to fit the error message in the container but its keeps resizing the widget.
Container(
decoration: BoxDecoration(
color: Color(0xffFAFAFA),
borderRadius:…

WonderingDino
- 11
- 3
0
votes
1 answer
TextField widget in flutter not working properly
I created a simple page for a user to update their display name if they don't have one, but for some reason when I click to enter the input data, the keyboard appears and disappears and the page freaks out a bit. I included a gif.
I've used this…

Hunter Books
- 372
- 2
- 11
0
votes
1 answer
try To make a Input Text Field in flutter But I can't Make a validator function that send as required function
That is a Component File and i need help with that:
Widget defaultTextFormField({
required TextEditingController controller,
required TextInputType keyboardtype,
required Function () submitFunction,
required Function validator,
required…

Abdo Morsy
- 3
- 2
0
votes
2 answers
Flutter Dropdown and Text Field is not showing in Release Mode
My flutter app is not showing a Dropdown field and a text field in release mode, but in debug everything seems fine, I have no idea why this is happening.
I'm using a dropdown_search package to show the dropdown field, and a CustomTextField package…

Zee
- 7
- 4
0
votes
1 answer
Calculate from one TextField in flutter
I'm creating a flutter page that has one text field, user should put a number in this field and the page calculate his input with another int that i already added in the code.
i did it in a bad way as you can see below
first under the screen class i…

Zee
- 7
- 4
0
votes
1 answer
I've been trying to output AlertDialog in flutter after someone enters something, But alertdialog doesn't work
I wanted to get an output of whatever user typed inside the textfield, I referred to official documentation of flutter dev. I couldn't come up where I am wrong, I would be really glad if you guys help. I want the textfield input as output using a…

nik10
- 3
- 1
0
votes
1 answer
How to dispose a text editing controller in flutter?
TextEditingController titleC = TextEditingController();
TextEditingController detailsC = TextEditingController();
// in dispose how can in dispose or clear my controller after submitting
@override
void dispose() {
titleC.clear();
…

zeeshan tariq
- 11
- 5
0
votes
3 answers
How to reduce the height of the DropDownButtonFormField so that the text inside it does not go out of the middle in flutter?
When I set a height for my container that is the parent of DropDownButtonFormField, I have no problem when the height is 55, but when the height is less (42) than a certain limit, the text inside it looks like this.
As it is clear in the picture,…

seyyed javad
- 23
- 9