Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
172 views

I'm working with a rich text field that has different text heights: import 'package:flutter/material.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const ...
Valentin Vignal's user avatar
0 votes
1 answer
84 views

In flutter I have a text field. now let say user types 2+2+2+2+2+2+2+2+2 and now he click on let say 2nd '2' from left and keeps typing '3' the text grows and moves to right and at some point my ...
vishnu kumar's user avatar
0 votes
1 answer
135 views

I have this widget containing a TextField and a UndoHistoryController : class _MyHomePageState extends State<MyHomePage> { final TextEditingController _controller = TextEditingController(); ...
Valentin Vignal's user avatar
1 vote
2 answers
1k views

I want to change the height of a TextField in Flutter but I don't know which one is the best way. Wrap the TextField in a SizedBox Use content padding property If you have some experience, please ...
Dani shahangi's user avatar
0 votes
2 answers
172 views

In my Flutter app, I use a TextFormField, so my users can enter a password. In order to hide the characters while they are being typed, I set the obscureText property to true. But on some devices, ...
matteoh's user avatar
  • 3,710
1 vote
0 answers
281 views

I have an app with Flutter, which has a text field and button: Row( children: [ Expanded( child: TextFormField(), ), Expanded( child: ElevatedButton( onPressed: () {}...
Valentin Vignal's user avatar
1 vote
1 answer
139 views

I have a page with several text fields, I used FocusTraversalGroup so the fields are focused in the desired order when pressing tab. See: Now, when I click on the icon button next, I want to send the ...
Valentin Vignal's user avatar
0 votes
2 answers
100 views

This is the code below, i've checked all the possibilities i could't find the solution. Whenever the textField text is filled to its end the issue appears After the field is filled, other wise it ...
Naveen Kumar's user avatar
0 votes
0 answers
51 views

enter image description here Container( padding: const EdgeInsets.symmetric(horizontal: 8), margin: const EdgeInsets.only(bottom: 16), height: 60, decoration: ...
Don Huynh's user avatar
0 votes
1 answer
256 views

I have some logic to check if statement and show the TextField widget as below: Flexible( fit: FlexFit.loose, child: ListView.builder( ...
Don Huynh's user avatar
0 votes
2 answers
1k views

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 ...
Seyit Kılıç's user avatar
2 votes
2 answers
707 views

I'm trying to have a long TextField's label that doesn't overflow but wraps. If I use InputDecoration({String labelText}), the label overflows: TextField( decoration: InputDecoration( labelText: ...
Valentin Vignal's user avatar
2 votes
3 answers
1k views

On the image below the Demo Text label by default a little bit small. I tried to change labelSmall and labelMedium styles but it doesn't work for that. What style is responsible for that?
rozerro's user avatar
  • 7,376
0 votes
1 answer
90 views

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 ...
Pierre Louet's user avatar
0 votes
1 answer
292 views

I have precisely one TextField on the screen of my Flutter app. I want my Flutter app to both work on the desktop and on mobile. Whenever the app is active I want all text input to go into the ...
Christian's user avatar
  • 26.5k
0 votes
2 answers
211 views

I created an android app in java and I had this xml shape in it: <?xml version="1.0" encoding="UTF-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/...
Mike's user avatar
  • 147
2 votes
1 answer
436 views

I need to change textfield border color while changing characters based on email or phone validation. For Example : When typing an incomplete email at the time border color is set to RED, after ...
Furkan's user avatar
  • 306
1 vote
1 answer
288 views

I am making a Flutter application. I set the login and registration processes. But since I get the password as a string when I enter the password, what can I do to make the password appear as a star ...
Jiddo's user avatar
  • 51
1 vote
1 answer
720 views

How I can input the text in the SplittedBox of TextFieldForm, which consist of letters and numbers? here is my source code: Container( color: Colors.grey[200], padding: EdgeInsets.all(20), child: ...
Bhavya N's user avatar
0 votes
3 answers
313 views

I use widget StatefulWidget and _inputFiled I've created a model class class Profile { String? email; String? username; String? password; Profile({ this.email, this.username, this....
JInSeok's user avatar
  • 11
1 vote
1 answer
3k views

I am learning Flutter and trying now to monitor the changes on a TextEditingController. I can monitor it, using a listener function, but I cannot use the variable in a Text widget: class ...
senseiwa's user avatar
  • 2,509
2 votes
4 answers
2k views

I have four textfields, a title field, a details field, a date field, and a time field. Both the date and time fields are wrapped within a gesture detector, and onTap calls a pickDateAndTime method. ...
Rohith Nambiar's user avatar
0 votes
2 answers
1k views

When I tap on a button I want to navigate to the second screen Focus on TextField(there is only one) and raise a keyboard. I successfully focused when I taped on a widget on the same screen using ...
Mister MB Boss's user avatar
1 vote
2 answers
730 views

I want to size the textfield based on text length...while typing it's length should be changed according to text..I was suggested to use IntrinsicWidth but its not working.. Container( ...
Irfan Ganatra's user avatar
0 votes
1 answer
424 views

I have wrapped a container and a sizedbox around the textform field to fit the error message in the container but its keeps resizing the widget. Container( decoration: BoxDecoration( color: ...
WonderingDino's user avatar
0 votes
1 answer
794 views

I created a simple page for a user to update their display name if they don't have one, but for some reason when I click to enter the input data, the keyboard appears and disappears and the page ...
Hunter Books's user avatar
1 vote
1 answer
618 views

I have a container that's wrapped within a gesture detector and within the container two text-fields which on clicked will show the time selector and date selector widgets consecutively. I added a ...
Rohith Nambiar's user avatar
0 votes
1 answer
183 views

That is a Component File and i need help with that: Widget defaultTextFormField({ required TextEditingController controller, required TextInputType keyboardtype, required Function () ...
Abdo Morsy's user avatar
1 vote
2 answers
3k views

I want to create a LoginPage for my App. I don't want to use a firebase so i tried to fake the login with a validator. First I want to check, if E-Mail and Password is filled with something. Otherwise ...
Jamila's user avatar
  • 11
4 votes
2 answers
5k views

I'm building a Flutter Application for Windows. I have a TextField and if I run the Application and want to insert an uppercase Character by holding Shift Left or Shift Right and than a letter, I get ...
F.M.'s user avatar
  • 768
0 votes
2 answers
920 views

My flutter app is not showing a Dropdown field and a text field in release mode, but in debug everything seems fine, I have no idea why this is happening. I'm using a dropdown_search package to show ...
Zee's user avatar
  • 25
1 vote
1 answer
1k views

I'm creating a flutter page that has one text field, user should put a number in this field and the page calculate his input with another int that i already added in the code. i did it in a bad way as ...
Zee's user avatar
  • 25
0 votes
1 answer
35 views

I wanted to get an output of whatever user typed inside the textfield, I referred to official documentation of flutter dev. I couldn't come up where I am wrong, I would be really glad if you guys help....
nik10's user avatar
  • 3
1 vote
1 answer
8k views

TextEditingController titleC = TextEditingController(); TextEditingController detailsC = TextEditingController(); // in dispose how can in dispose or clear my controller after submitting @...
zeeshan tariq's user avatar
-2 votes
1 answer
108 views

i'm trying to use customTextField this the file which contain the Widget import 'package:flutter/material.dart'; Widget defaultFormField({ required TextEditingController controller, required ...
Ahmad's user avatar
  • 1
1 vote
1 answer
261 views

We need to scan using zebra tc77 but enter event not found at the end of text , even after we have enabled enter key at settings? _onChangeListener(String val) { if(val.isEmpty) return; ...
Kokila's user avatar
  • 325
4 votes
0 answers
213 views

I'm getting input to my textfield from barcode scanner so I dont need softkeyboard to open when textfield in focus.To achieve that I tried TextInputType.none it hides the keyboard but also can't ...
Kokila's user avatar
  • 325
1 vote
4 answers
5k views

When I set a height for my container that is the parent of DropDownButtonFormField, I have no problem when the height is 55, but when the height is less (42) than a certain limit, the text inside it ...
seyyed javad's user avatar
2 votes
1 answer
999 views

You can see the problem here (I turned on flutter inspector gridlines so you can see the problem better) Overflow disappears when I wrap my Container inside Expanded, but then my search bar height is ...
Gryva's user avatar
  • 327
1 vote
2 answers
1k views

I have one page of technical skill and I want to add new textfield on onatap and get the value of it and remove that skill on ontap of delete button and this is working now but only problem was that ...
Akashptl's user avatar
  • 105
0 votes
2 answers
43 views

If password and username is same, I want to print 'username and password is same' statement in the terminal .But it is only printing the second statement 'username and password does not match even if ...
Aman7471's user avatar
-1 votes
4 answers
308 views

I want to make a particular button inactive and a different color until all the required fields filled properly, I also want there to be a message under the textfield telling the user to fill the ...
Iniisking's user avatar
1 vote
1 answer
721 views

I have tried to make it in the row, but then I don't have anything in the screen. How do you solve it in Flutter? appbar @override Widget build(BuildContext context) { return Padding( ...
Chris's user avatar
  • 73
0 votes
0 answers
803 views

I have an issue with DatePicker in my application. Here's a simple TextFormField that I've created in my app which will open up DatePicker whenever the user taps on it. This widget is a part of a ...
Alv's user avatar
  • 65
1 vote
2 answers
283 views

I would like the colour of a text field to remain active even if it is no longer in focus. Here you can see the problem. If i unselect the TextFormField, the color of the icon and the underline ...
Hans Ranger's user avatar
0 votes
1 answer
563 views

i want to fetch data from api and set it as text field initial value, then after user changes it i will post it to another api, but after changing textfield value, future builder rebuilds and ...
dinomim's user avatar
  • 21
0 votes
1 answer
252 views

How can I create Textfeild with multi input boxes, same like in picture with controller
husam's user avatar
  • 33
2 votes
2 answers
420 views

The textformfiled i want and My textformfield now I'm trying create a search field like this.(attach this link) but the suffix, prefix icon not align with content I am also attaching the code that I ...
anhdhq's user avatar
  • 35
0 votes
1 answer
72 views

TextField textWidget(String text, IconData icon, bool isPasswordType, TextEditingController controller, TextAlign align) { return TextField( controller: controller, obscureText: ...
ckot's user avatar
  • 359
0 votes
2 answers
6k views

I have edit form where some data in text fields controller from database but when I edit or change the test of any text field it doesn't change the value of text field give it me same value which ...
RAF Algowid's user avatar