Questions tagged [flutter-textinputfield]
88 questions
1
vote
1 answer
What is the difference between onSubmitted and onEditingComplete in Flutter textField widget?
What is the difference between onSubmitted vs onEditingComplete in Flutter textField widgets?
I mean, onSubmitted already passes us the value the user has entered which we can use when submitting is done. Why need an onEditingComplete property?
I…

gfit21x
- 141
- 9
1
vote
2 answers
I'm not able to add textfield inside positioned widget in flutter
I'm not able to add textfield inside positioned widget. Could someone help me with the code
import 'package:flutter/material.dart;
import 'dart:math' as math;import 'dart:math' as math;import 'dart:math' as math;
import…

Dharshini T
- 11
- 1
1
vote
1 answer
TextField inside CupertinoAlertDialog
I'm making a dialog, which has a text field to get input from user, by using CupertinoAlertDialog. However, it keeps saying No Mater Widget Found. I searched and tried with some solution from the Internet but it didn't work.
Here is my…

Hoangdz
- 152
- 1
- 14
1
vote
2 answers
how to add gap between label text and user input in TextFormField?
as you can see from the image above, I want to add the gap/space between 'email' label text and the actual email input (abcd@gmail.com). how to do that ?
this is my current code
Form(
child: Column(
children: [
…

Alexa289
- 8,089
- 10
- 74
- 178
1
vote
1 answer
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
class _TextFormFieldsState extends State {
String _name = "";
final formKey = GlobalKey();
@override
Widget build(BuildContext…

Mehmet Emin Sayım
- 47
- 1
- 6
1
vote
2 answers
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 code:
TextFormField(
onEditingComplete: () {
…

LWB
- 426
- 1
- 4
- 16
1
vote
0 answers
how to change the focusedBorder color in custom Reusable Text Field component flutter
I am new to Flutter development. I created a custom Text field component which I am going to use in my application. I am sharing code and can any one help me how to change the text field border line color based on text field validation. I will…

kartheeki j
- 2,206
- 5
- 27
- 51
1
vote
1 answer
Flutter Clipboard option not showing in TextInputField
Here I am getting two problems:
When I long press on TextInputField, I want here clipboard option which I am not getting to paste text from ClipBoard
Selected Text is not visible.
Can anyone help me?

Pratik Butani
- 60,504
- 58
- 273
- 437
0
votes
2 answers
Text in TextField of flutter is overflow the parent Container, Cannot align Vertical center for text in Textfield
enter image description here
Container(
padding: const EdgeInsets.symmetric(horizontal: 8),
margin: const EdgeInsets.only(bottom: 16),
height: 60,
decoration: BoxDecoration(
color: AppColors.boxColor,…

Don Huynh
- 1
- 1
0
votes
1 answer
FocusNode does not trigger when first time add to the widget with if statement
I have some logic to check if statement and show the TextField widget as below:
Flexible(
fit: FlexFit.loose,
child: ListView.builder(
shrinkWrap: true,
itemCount:…

Don Huynh
- 1
- 1
0
votes
0 answers
How to Type Screenplay in Flutter Textfield
When the next line was the start alignment, the central alignment should come, and also the width of the paragraph should be reduced. Another solution required is end alignment on the next line in Textfield.
( like Final draft App or Celtx…

Anas Erattupetta
- 1
- 1
0
votes
0 answers
Is there any problem with putting alot of widget inside a widget
(elided 5 frames from class _AssertionError, class _Timer, and dart:async-patch)
The following RenderObject was being processed when the exception was fired: RenderDecoratedBox#a8c37 relayoutBoundary=up5
... needs compositing
... parentData:…

Josh
- 1
- 1
0
votes
2 answers
Flutter: Dynamically Updating TextField Values Based on User Input
I am currently working on my Flutter application and I am encountering difficulties in achieving a specific functionality. The objective is to automatically populate and disable the third TextField on a page that consists of three TextFields, once…

Seyit Kılıç
- 50
- 6
0
votes
0 answers
Flutter FocusNode : Auto Focus is not working in my flutter app
I want the Auto focus FocusNode in my OTP text fields.
I tried :
1st 2 field are working fine but after fill the 2nd field the curser move to 4th field after that is stopped.
The Issue:
The curser not moving automatically to 3rd and 5th text…

Vennila Murugesan
- 13
- 4
0
votes
1 answer
My textfield is returning null, so somehow the value isn't being passed from the onChanged -> the variable
Here is the bulk of the code:
I have tried modifying how I pass though the variable, on my other projects a simple function passthrough was sufficient but I must be initializing it incorrectly.. If I leave it as a late String Password then I receive…

Pierre Louet
- 25
- 6