Questions tagged [texteditingcontroller]
88 questions
3
votes
1 answer
How to access TextEditingController in flutter fieldViewBuilder
I have a TextEditingController within a fieldViewBuilder, however, I can't access it outside of the RawAutocomplete widget.
RawAutocomplete(
optionsBuilder: (TextEditingValue textEditingValue) {
return…
user16798361
3
votes
2 answers
The TextFields in ListView.builder are disappearing
To do an Inventory Control, I'm building a ListView from Firebase Data (a list of "Alimentos") and a TextField to edit the quantity for each "Alimento".
It's working fine when I have less than a screen of "Alimentos", but when I have some pages of…

David L
- 1,134
- 7
- 35
3
votes
1 answer
Flutter: How to insert text properly in a TextField/TextFormField
Let's say there is an empty TextFormField. After entering 2 characters manually I would like to insert a new one programmatically. So if length equals with 2 than insert a new one. It sounds really simple but strange behaviors appeared while I tried…

Ricky
- 553
- 6
- 21
3
votes
0 answers
Flutter/Dart: A TextEditingController was used after being disposed
Please, someone, help on this, I am not sure if this is a framework glitch then how are there not more post on this and if it is me then how come there is not much on this error!
===========================
main.dart
import…

mohit sharma
- 89
- 2
- 10
3
votes
1 answer
Flutter: TextFormField: Cursor resets to beginning after calling setState()
I'm making a question answer application to pass time.
There are questions in a question list. The code below shows for each question. A question can have multiple choices but only 1 answer.
I'm having trouble where everytime I type in the…

Jerry Woo CW
- 31
- 1
- 3
3
votes
2 answers
type 'TextEditingController' is not a subtype of type 'int' in type cast
I am trying to take 4 inputs from the user to show the minimum, maximum values and to show mid 1 value and mid 2 value. Now the fact is that whenever I try to take input to perform an action on it to display my answer. It shows "type…

Ruhma CH
- 67
- 1
- 1
- 10
2
votes
6 answers
Flutter: What's the usage of the textEditingController provided to fieldViewBuilder in the Autocomplete widget?
What's the usage of the textEditingController provided to fieldViewBuilder in the Autocomplete widget? What can it be used for? Can it be used to modify or clear the content of the TextField?
Autocomplete(
fieldViewBuilder: (
…

B Faley
- 17,120
- 43
- 133
- 223
2
votes
2 answers
Flutter disposing large no of TextEdititingController
I have no of TextEditingController a, TextEditingController b.......z
1)
How to short cut way dispose all TextEditingController
@override
void dispose() {
// _nameCtrl.dispose();
a.dispose();
b.dispose();
.....
....
…

Yeung Ka Wing
- 21
- 1
2
votes
1 answer
How to create List for Text Editing Controller
I have a lot of Text Editing Controller and instead of repeating it and writing it again and again, is there a way to create a list and assign it to a controller?
TextEditingController _Length = TextEditingController();
TextEditingController _Width…

Ahmad
- 95
- 6
2
votes
2 answers
How to get and display value from a TextEditingController using flutter getx
I'm learning flutter getx -mvc pattern.For a longtime I'm struggling to retrieve a value from text box using Homecontroller and want to display the value when the button is clicked.
Here is the code , I have written.My overall task is to add two…

Kathiravan
- 97
- 1
- 1
- 9
2
votes
1 answer
Flutter throws an "Invalid double" error when i change the value
I am trying to get the value from the Textfield and use that value in the slider. I have achieved what i want but i am getting error when i change the value of the textfield.
Error:
The following FormatException was thrown while dispatching…

Elam
- 413
- 6
- 19
2
votes
2 answers
When the textfield_tag widget is rebuilt for the second time, it produces the A TextEditingController was used after being disposed error
When the textfield_tag widget is rebuilt for the second time, it produces the A TextEditingController was used after being disposed error. I am displaying the widget based on the toggle switch. I have tried to pass to the widget an…

Armando Sudi
- 137
- 1
- 12
2
votes
1 answer
Flutter editing a value in a TextField after setting an initial value with a TextEditingController
I am passing some user information from the first screen to the second screen and on the second screen, I am trying to edit that information inside a TextField. My code for the second screen is as follows.
class EditProfile extends StatefulWidget {
…

AnuIzu
- 27
- 1
- 5
2
votes
2 answers
How to zero out the password in the memory. Flutter keeps all inputs from the TextEditingController
It seems TextEditingController keeps all plain input text including password in the memory.
I have tried many things so far
controller.dispose()
set the value null
replace with other text
zero out the memory of controller.text by using the FFI
The…

Sam Ma
- 81
- 3
2
votes
3 answers
flutter text editing controller listview.builder
I want the page to display a list of social media apps where the user can input their usernames/ details. I want to be able to extract this input data along with the app name and logo (preferably as a JSON file) to be able to create them into…

Savandhi Goonasekera
- 21
- 1
- 3