Questions tagged [flutter-form-builder]
105 questions
56
votes
5 answers
flutter - how to create forms in popup
I want to create a form inside a pop-up with flutter like the image below:
popup
.
how can I do that with flutter?

geek man
- 209
- 2
- 8
- 22
17
votes
2 answers
Flutter GetX forms validation
I am looking for an example of how to handle forms and validation in best practice with GetX?
Is there any good example of that or can someone show me an example of how we best can do this?

allmighty
- 205
- 1
- 2
- 6
7
votes
1 answer
flutter_form_builder set value of field programmatically not working
I'm trying to set the value of a field programmatically using flutter_form_builder and it doesn't seem to be in the docs.
the controller:
class LoggedOutNicknameController extends GetxController {
AnimationController animateController;
bool…

BeniaminoBaggins
- 11,202
- 41
- 152
- 287
7
votes
0 answers
Flutter : Scroll to the form field which fails validation in a long form
I have a Form in my app which is long enough to go beyond the screen and is put in a ListView to enable scrolling.
My validators are working fine. Though if the form field failing validation is out of the screen, I need my screen to be scrolled to…

Akash Gorai
- 580
- 1
- 8
- 17
6
votes
2 answers
How to get Flutter FormBuilderDateTimePicker to show only the date picker
How can I get the Flutter FormBuilderDateTimePicker to only show the date? The code below produces a time picker after the date picker closes and the output is:
flutter: 2022-04-02 00:00:00.000
I could strip the time using DateTime.timeonly() but…

markhorrocks
- 1,199
- 19
- 82
- 151
5
votes
2 answers
Flutter Forms: Get the list of fields in error
Can we get the list of fields in error from Flutter forms after validation ? This will help developers use focus-nodes to redirect the attention to the field in error.

vzurd
- 1,416
- 2
- 15
- 37
4
votes
3 answers
Flutter formKey currentstate is null when pass to another widget
I'm trying to create a Textbutton widget with a disabled property like this:
class AppTextButton extends StatelessWidget {
final String title;
final void Function(BuildContext context) onPress;
final EdgeInsetsGeometry margin;
final…

hrtlkr29
- 383
- 1
- 7
- 21
4
votes
3 answers
Flutter form validation not working ( _formKey.currentState.save())
I have a Sign In form validator that is not working as expected. When I leave the email or password fields empty or enter something that is not accepted based on what I set on the validator the error is shown but I'm directed to login success page…

Shadow Walker
- 979
- 5
- 27
- 51
2
votes
1 answer
Flutter form skips validation of IntlPhoneField
So I'm trying to create a form, which shall validate that all field is filled before submitting, but it is skipping the validation of my IntlPhoneField. Here's the snippet:
import 'package:flutter/material.dart';
import…

Newbie
- 21
- 1
2
votes
0 answers
How to build customized FormBuilderField that returns list of map
The idea is simply to retreive a list of data from the backend, and the user has to submit quantities (it's like calling purchase order quotation from back end then choose delivried quantites) as follow :
I created the card widget and here is the…

Youssef Idraiss
- 396
- 5
- 19
2
votes
3 answers
Flutter running problem Error: No named parameter with the name 'anchorPoint'
I am facing issue when I try to run app on emulator or during creating apk file on flutter project. I tried to delete project, pub get, pub cache clean, deleted flutter folder and installed again. Nothing helps, it gives below error…

Elvin Mammadov
- 21
- 5
2
votes
2 answers
Flutter_form_builder errors
I'm trying to use flutter_form_builder: ^7.1.0 with form_builder_validators to create a form, but a getting undefined errors at
onChanged: _onChanged, and validator: FormBuilderValidators.compose.
I tried following the example at…

markhorrocks
- 1,199
- 19
- 82
- 151
2
votes
3 answers
Multiple widgets used the same GlobalKey with FormBuilder
The following minimally reproducible dummy code throws this error:
════════ Exception caught by widgets library ═══════════════════════════════════
Multiple widgets used the same…

HelloWorld
- 193
- 2
- 8
2
votes
1 answer
Flutter form builder - FormBuilderImagePicker
I'm letting my users upload an image to my app, from gallery or using the camera. Then the image is stored as a string on SQflite database
FormBuilderImagePicker(
name: 'photo',
decoration: InputDecoration(labelText: 'Upload Image'),
…

leshugo33
- 55
- 2
- 9
2
votes
3 answers
Flutter : initial value not updating in Form (FormBuilder)
_updatePersonalFormScreen(String loginId) async {
if (!DartUtility.isNullEmptyOrWhitespace(loginId)) {
_personalInfo = await _service.getUserPersonalDetails(loginId);
setState(() {
if (_personalInfo != null) {
…

Noorus Khan
- 1,342
- 3
- 15
- 33