Questions tagged [texteditingcontroller]

88 questions
0
votes
1 answer

Flutter - How to format individual text fields

I would like to have 3 different text fields with a menu at the bottom of the screen allowing the user to customize each one separately. I have created 3 text editing controllers but need a way of changing the format of which ever text field is…
TJMitch95
  • 421
  • 3
  • 7
  • 23
0
votes
3 answers

Passing TextEditingController as a paramater to a function?

I created Two text fields in flutter using a function, but I want to use two different TextEditingControllers for each. How can I pass a TextEditingController as a paramater to a function? Widget fieldmaker(String title) { return…
rawat
  • 15
  • 1
  • 4
0
votes
1 answer

Only static members can be accessed in initializers on TextEditingController

GOAL: when editing information it goes to a Form that has an initial value equal to the information at present. The code below works because it has the property 'initialValue' TextFormField( maxLines: 1, autofocus: true, initialValue:…
CedricM
  • 53
  • 1
  • 4
0
votes
2 answers

flutter : how to save a string to a textEditingController

im trying to save the value of a textEditing controller in sharedPrefrences, im saving the value of it as a string, but later i don't know how to retrieve the value of the string and set it back to the textEditingController ,, here's my code: void…
azheen
  • 897
  • 4
  • 15
  • 30
0
votes
5 answers

Passing data from custom widget textfield to a calculator flutter

I am trying to pass data from a custom widget that contains a textfield to a calculator widget. The problem I am facing is that I am hoping to utilize my custom widget to create multiple inputs that can go to the calculator (i.e. height and weight).…
0
votes
1 answer

textField value(input) keeps disappearing after save with and without textEditingController

i have tried this different ways but it just will not work. i like the input text written inside the textfield by user to stay after submit/upload so when the user comes back to the page the text should be there and user gets to clear it manually ,…
Error Place
  • 45
  • 1
  • 1
  • 8
-1
votes
1 answer

TRYING TO GET interger from TexteditingController to build a M

i want to make a dodging (Multiplication) Table...and wanna take input from user from TexteditingController, but i am not able to take the integer value from the Text Editing controller. looking forward if someone would look into…
-1
votes
1 answer

Flutter Bottomsheet reload problem after dismissing keyboard

In a todoapp , am trying to edit a single task from a list of Tasks. After clicking on edit icon , I was able to open a bottomsheet widget using showmodalbottomsheet function with pre filled two text fields using texteditingcontrollers. When I tried…
-1
votes
1 answer

How to make a new line for a sentence after finished sentene with dot?

I have a large text file in Python. I want to make a new line for each sentences. For each line should contain only one sentence information. For example: Input: The Mona Lisa is a half-length portrait painting by Italian artist Leonardo da Vinci.…
rocinantes
  • 39
  • 4
-1
votes
1 answer

Flutter TextEditingController - Disposal & Initiation Requirements?

I am creating 100's of TextEditing Controllers in my app. Here's what im doing: TextEditingController _customerName = TextEditingController(); I'm just curious, but if I have 100s of these elements, am I meant to do anything in @override void…
houba
  • 496
  • 7
  • 20
-3
votes
0 answers

how can I set textAlign for each line separately in flutter

How do I individually set text alignment for each line within a Flutter TextField widget, considering different line lengths and maintaining alignment like this and I try to do this with textEditingController and doing check each character to we…
-3
votes
1 answer

How to get Custom input from controller of TextField?

#dart, #Flutter, #Arrays, #Android #Form, #Custom input from TextField. This is what I'm trying to do, but I'm sure it's wrong. List _numController =_controller=List();
1 2 3 4 5
6