Flutter TextField with maxLength and

I need a Text Area with an enforced maxLength of 250 chars and its label aligned with the hint text. My code is below. However, the widget is rendering the tex...

Flutter: Textfield initial value produces additional new lines

I need to update the value ListTile inside a card. So onLongPress(), I use showDialog to show a textfield. The initial value of the textfield is updated in initState()...

How to add a texfield inside the App bar in Flutter?

I'am having trouble in having a <code>TextField</code> on the <code>AppBar</code> so the user can enter input similarly to using a search bar. I need to take the user...

Flutter : clear textfield from another widget or screen

If I have this screen contain some widgets : <pre><code>@override Widget build(BuildContext context) { return Column(children :[ TextFieldWidget(), Cl...

Pass data and receive on textfield widget in Flutter

How to pass a data from first screen to second screen but should receive on <code>textfield</code> widget in second screen. I have tried but there is no option in <cod...

TextField &amp; BLoC : pre-filling a field

I have a screen with a form that I use to post an ad and I use that same screen to edit an ad. When I want to edit an ad, the form is pre-fill with the content of the...

Create multiple custom FormBuilderTextField validators for a customizable FormBuilderTextField in Flutter

I am trying to create a custom FormBuilderTextField widget that I can call throughout my application. I was hoping to condense my code by making it be able to automati...

Need to update TextController with Provider

Currently, I'm learning flutter and can't update one textController when the value in provider changes. Here is the code I tried already: <pre><code>TextEditingCon...

How to get input of text controller as a double? - flutter

I have a textcontroller and need to pass the text controller value to a parameter of a class that only accepts double as the input but by default the type of textcontr...

flutter - texteditingcontroller from another class

i am fairly new to flutter, can anyone help me? pls I would like that once I click the RawMaterialButton(), what I wrote in the TextField() appears as text in t...

Flutter search query

Can you please help me with the following issue. I don't know how to fix my search query. For example, if I search for an Apple with the first letter upper...

Dart Flutter Textfield validate current text when textfield is unselected/loses focus

Hello I would like to validate the textfieldinput of a user when the textfield loses it's focus. I could only change the focusstate with the FocusNode but couldnt list...

Insert into TextField using buttons from another widget - Flutter

I have a TextField that serves as a search bar where the user can use the built in Android/iOS keyboard to type but also has the possibility to insert a special charac...

How do you take an input using a text field, put it into an equation and then display the output as text after a button is pressed in flutter?

I want to take input from a user in two separate text fields, and then plug those two inputs into an equation of my own. The code that I have right now seems to work w...

Flutter TextField with number keyboard, comma is needed instead of period (Only iOS)

I want to create a TextField in Flutter. The TextField is for decimal numbers. So i set <code>keyboardType: TextInputType.numberWithOptions(decimal: true)</code>. Now...