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 ce...

how to add gap between label text and user input in TextFormField?

<a href="https://i.stack.imgur.com/oaPco.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oaPco.png" alt="enter image description here" /></a> <p...

Letter spacing in Arabic language

I am working on a Flutter mobile app. What I want to achieve is to separate characters in a TextFormField using the letterSpacing the property. Letter spacing w...

try To make a Input Text Field in flutter But I cant Make a validator function that send as required function

That is a Component File and i need help with that: <pre class="lang-dart prettyprint-override"><code>Widget defaultTextFormField({ required TextEditingControlle...

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. <pre><code> Contai...

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...

Invalid constant value.dart(invalid_constant)

in the bellow code I got the error on controller: urlController, this line <pre><code> var url; final urlController = TextEditingController...

How to change the set value of a text field

So I have TextFormField and it has a set value. However when I try to change the value of it by typing in the Feild, it just reverts to the specified value. This is my...

Error: Method save cannot be called on FormState? because it is potentially null

Flutter form saved error Have a formKey but I'm still getting an error This my code <pre><code>class _TextFormFieldsState extends State&lt;TextFormFields&gt...

passcode input hideen by keyboard

I created six digit passcode filed component and it is working fine as expected in bigger size emulator but when I check with small size emulator, the passcode input i...

Flutter typeahead textField in a reactive_forms custom widget not displaying the selected option text

I'm using <a href="https://pub.dev/packages/flutter_typeahead" rel="nofollow noreferrer">Flutter Typeahead</a> to use a google maps places autocomplete. Everything is...

Ive been trying to output AlertDialog in flutter after someone enters something, But alertdialog doesnt 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 woul...

How to dispose a text editing controller in flutter?

<pre class="lang-dart prettyprint-override"><code> TextEditingController titleC = TextEditingController(); TextEditingController detailsC = TextEditingController();...

Is it possible to create a text field phone number mask which is not disappearing when user inputs, in flutter?

Is it possible to create phone number mask like this in flutter: <a href="https://i.stack.imgur.com/e3edO.png" rel="nofollow noreferrer">mask example</a> When u...

Flutter. Is it possible to change TextFormField errorText padding?

I'm using <code>TextFormField</code> with <code>OutlineInputBorder</code>. I need the text inside to have padding on the right and left. For this I'm using: <pre><...