Questions tagged [texteditingcontroller]

88 questions
0
votes
0 answers

Flutter: Get currently active TextEditingController without explicitly creating Controllers or Nodes

ATTENTION: Windows-Development here. I want to use a virtual keyboard (on screen). I can not rely on a hardware-keyboard. My goal is to securely get any TextEditingController if I e.g. tap on a TextFormField so I can use it in my virtual keyboard (I…
Marwin Lebensky
  • 270
  • 1
  • 2
  • 16
0
votes
1 answer

flutter how can i cast String to TextEditingController

hi i'm looking for a way to cast String variable into TextEditingController final TextEditingController _testController=TextEditingController(); and this is what i'm doing var test = "_"+"testController" and inside TextFormField Controller i'm…
Wassef Hassine
  • 282
  • 7
  • 26
0
votes
0 answers

Error special characters in Android : _CastError (Null check operator used on a null value)

I have a Samsung Tab S2 version 7 android tablet. I can't find anywhere a solution for this error, in the EditableText widget. What happens is that in a TextFormField widget with its respective TextEditingController, I enter the name of my user,…
Daniel Roldán
  • 1,328
  • 3
  • 20
0
votes
0 answers

manage flutter Controllers in generals

I have more than one question about controllers : Do I need to dispose of every controller I create, even if it's TextEditingController or AnimationController? StatelessWidget and StatefulWidget, Do I need to convert StatelessWidget to stateful to…
0
votes
1 answer

How to edit the text prase by Json after assigning it to the TextFormFeild in Flutter?

I prase a json and assign the text to a TextFormField. I want to edit that text again. How to do it. I tried, but again the text displayed by json is still displaying. var disConroller = TextEditingController(); disConroller.text =…
0
votes
0 answers

how to implement TextEditingController inside listview builder

I am iterating over list and adding the _controller and then I am trying to access the controller inside using indexing : _controllers[index][titleValue] And, it is working, the first controller is getting assign to to for the first element but,…
Harshit
  • 95
  • 2
  • 8
0
votes
1 answer

How to parametrize initial text at TextEditingController

Cannot find a clue why i can't set an initial text at TextEditingController as the parameter: following code works well: TextEditingController _usernameController = TextEditingController(text: 'test'); But if i change hardcoded value to a…
0
votes
2 answers

Flutter: problem to get a calculation of several values ​of different textfield

I need help solving a problem. I am trying to retrieve a value which is the result of adding several values ​​of textfields in order to be able to use it in another screen, (either via the sharedpreferencies or sqlite) ... I can't seem to get this…
mbrd
  • 335
  • 1
  • 4
  • 14
0
votes
1 answer

setState blocks editing of TextEditingController

I am using a TextFormField as a widget and TextEditingController inside TextFormField for a phone number, and I am trying to validate a number while typing with the flutter_libphonenumber library, which provides an async function for validation. I…
0
votes
1 answer

access Controller.isEmpty from another widget

So, I have a textwidget in my main class and I made another class that contains a TextFormField. Depending if the textfield is empty, I would like to change the color of the text from my main class. If I put the textfield in the same class as my…
Jaak
  • 3
  • 1
0
votes
2 answers

Error Get Value TextEditingController In Flutter

I want to retrieve the value from textEditingController with a loop, the problem that occurs when the listview is not scrolled will result in an error, "RangeError (index): Invalid value: Not in inclusive range 0..23: 24", I have random data of 40…
sky developer
  • 57
  • 1
  • 7
0
votes
1 answer

Why is my flutter TextField initialState not working

Here is the code on how i call my custom Widget called BodyInput BodyInput( label: 'Name', readOnly: readOnly, initialValue: name, placeholder: name, handleChange: (value) { …
0
votes
1 answer

Flutter Clear Search Text Persists Search

I have a Text Field with _searchController and a separate IconButton that clears the _searchController: _placesList are the search results. I also have a method _onSearchChanged that is a listener for the _searchController: The _onSearchChanged…
0
votes
1 answer

Flutter: How to assign other value (object) as Text Editing Controller in Another Field?

I'm building a form that has contact name and phone number fields. User will be able to choose (tap) contact from previously saved contact list, and this should display name and phone numbers at their respective fields. To achieve that I'm using…
0
votes
1 answer

How to deal with more than 60 TextFormField in a single screen in flutter?

I am working on an app in which I have to generate PDF based on user input. but there are more than 60 inputs I need to take from user. So how can i deal with this ? A common approach I know is to create TextEditingController for each fields and…