109 questions
0
votes
1
answer
46
views
Keyboard Language automatically swaps between FormFields on Samsung Devices
On Samsung devices, only when using the default Samsung Keyboard, when moving between Form Fields in flutter using FormBuilderTextField and FormBuilder, the keyboard's language automatically switches ...
0
votes
0
answers
38
views
Implemented Auto Scroll to first Error field in flutter form
I have implemented Auto-Scroll to the first error causing field in flutter form. Code Link. I had to use renderObject approach in few cases as scrollable.ensureVisible is not working. Note that I am ...
0
votes
1
answer
121
views
FormBuilderChoiceChip customization issues
I using package flutter_form_builder for forms and not getting how to customize these:
options: const [
FormBuilderChipOption(value: 'Low', child: Text('Low')),
FormBuilderChipOption(...
0
votes
2
answers
58
views
How to remove the animated tick with FormBuilderChipOption using flutter_form_builder in Flutter?
Is it possible to remove the animated tick that appears with FormBuilderChoiceChip using the flutter_form_builder package? I can't see any properties to allow this, and wonder if there is a work ...
0
votes
1
answer
115
views
How to use FormBuilder FormBuilderChoiceChip FormBuilderChipOption Map(Value Avatar)
I am trying to use a Map(String,String) to satisfy the FormBuilderChipOption. The code I have tried is as follows:
options:
languageOptionsMap((city,letter) => FormBuilderChipOption(
...
0
votes
2
answers
193
views
FormBuilderDropdown items style
I am trying to remove the vertical padding inside the dropdown and to change the border radius of the highlight of the selected item. I am using the flutter_form_builder package.
Here's my current ...
0
votes
1
answer
70
views
Assertion Error in Custom ListTile Using Flutter FormBuilder's CheckboxListTile in Debug Mode
I have forked the Flutter ListTile and created my own custom list tile widget. Inside this custom list tile, I am using a checkbox from the flutter_form_builder package, which internally uses ...
0
votes
1
answer
63
views
Keyboard keeps going out of focus in flutter application
this is my flutter sign in widget, but the issue is, the moment i declare the form keys, the keyboard for every text field keeps going out of focus, how to resolve this, please help
class ...
0
votes
1
answer
56
views
How to post process after a Widget/WidgetState loads
I want to run a post process hook after my stateful widget loads.
More concretely, I am building a form using flutter form builder. The form is sometimes prefilled, and if the values are valid I want ...
0
votes
1
answer
815
views
Flutter Form Builder dynamic form fields not updating properly
I am experimenting with the code for Flutter Form Builder's dynamic forms, which can be found here. (For context, a dynamic form lets you add and remove form fields at will.)
In the original code, ...
1
vote
1
answer
555
views
Flutter - FormBuilder enable field based on checkbox value
I need to enable a FormBuilderTextField based on the value the user selects in a FormBuilderCheckboxGroup. This is an example:
import 'package:flutter/material.dart';
import 'package:...
3
votes
0
answers
238
views
flutter_form_builder for array of objects
How do I get an array of objects using flutter_form_builder and ListView?
the object:
{
items: [
{
id: xx,
name: xxxx
}
]
}
What I have tried:
return FormBuilder(
key: ...
0
votes
1
answer
1k
views
Flutter FormBuilderDropDown initial value not in the dropdown list
I'm building a flutter app with a number of drop down lists using flutter_form_builder. On occasion I get an error saying that the initial value is not in the drop down list. This could happen for ...
1
vote
0
answers
264
views
How to save and restore app state after app was killed by OS? [Flutter]
My app has a long form, so I want to save its data in the case that the Android OS kills my app when it's in the background (e.g. when picking an image using image_picker). My form is implemented ...
0
votes
1
answer
547
views
Copy-Paste Interaction Not Working in FormBuilderTextField
I'm facing an issue with the FormBuilderTextField widget in Flutter. I want to enable copy-paste interaction within the FormBuilderTextField when I long-press it, but it doesn't seem to work as ...
0
votes
1
answer
661
views
Error: The getter 'FormBuilderValidators' isn't defined
I am getting the following error from flutter:
lib/screens/create_account_screen.dart:30:30: Error: The getter 'FormBuilderValidators' isn't defined for the class '_CreateAccountScreenState'.
- '...
2
votes
2
answers
1k
views
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/...
1
vote
1
answer
2k
views
Change date time picker header color in Flutter
I'm using Flutter Form Builder package and it seems I can't change the color directly using the FormBuilderDateTimePicker class, so I used the datePickerTheme in the ThemeData,
datePickerTheme:...
0
votes
0
answers
35
views
Flutter app on linux: window goes blank when entering text in field
I have a pretty basic form widget inside a scaffold app, with a single text field.
The form uses the flutter_form_builder library.
// Define a corresponding State class.
// This class holds data ...
0
votes
1
answer
669
views
Unregister Field from State
Unregister Field from State
7.7.0 version:
I am getting _fields.containsKey(name) after removing Text Field from a List
I have dynamic count of Cells (each cell contains one TextField) in my Scroll ...
0
votes
3
answers
655
views
Flutter form in Container, when validator works Container comes too small for Form
Im a new flutter developer, so please can u help me with this problem.
The problem is when validator in TextFieldForm "works" it adds text that user did something wrong.
And my Container is ...
0
votes
1
answer
259
views
I wants to call only one form for add and edit operations in flutter app
Bellow is Form to add new document.I wants to reuse and call same form for edit document operation also.For both operations one or two fields can be changed but i wants to call same form on onPressed()...
0
votes
0
answers
121
views
Multiple Column Form with Form Builder in Flutter
Is there anyway to have a multi-column form using Form Builder package, or any other alternative. I dont want to use native forms as it may not be a cleaner option to display 10-20 questions.
...
0
votes
1
answer
191
views
The following StackOverflowError was thrown while calling onSubmitted for TextInputAction.done
I am doing form saving with flutter 3.3.6
the code in the build method is:
TextFormField(
decoration: const InputDecoration(labelText: 'Image URL'),
...
0
votes
1
answer
503
views
Flutter - Form inside PageView not scrolling
I am trying to build a multi-page registration screen with each page having a Form displayed within a PageView for each and smooth sliding effect. My only trouble is when the keyboard is displayed, ...
0
votes
1
answer
784
views
Flutter: How to create a custom TextFormField which can ... , and also how to validate it?
I am trying to create a custom TextFormField which can switch between Email / Phone / ID on Suffix icon click, but I don't know how to validate it based on its current state (Email / Phone / ID). I am ...
2
votes
1
answer
790
views
Flutter - FormBuilder, how to to disable FormBuilderTextField based on another FormBuilderTextField value length
I have a FormBuilderTextField that I want to toggle it's enabled property based on another FormBuilderTextField value length.
I know there are ways with TextEditingController, but I want to try it ...
2
votes
0
answers
106
views
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 ...
0
votes
1
answer
898
views
Flutter Form Builder issue. The getter 'fields' isn't defined for the type 'FormState'
I'm following the example here to build a form
FormBuilderTextField(
autovalidateMode: AutovalidateMode.always,
name: 'age',
...
0
votes
1
answer
421
views
How can i change default error arabic Text message in form_builder_validators
I want to change this text to my custom text in all form builder validators in the app.
enter image description here
0
votes
1
answer
716
views
Showing different forms based on dropdown selection in flutter
I'm creating a mobile application in which I want to use a dropdown to select a "note type" (to create a new note) and based on the selection from the dropdown I want to show a specific form ...
1
vote
2
answers
188
views
how to modify a String from a Textfield before validated using validator?
I am using form field validator, I think it will be the same if using normal TextField, and I have form field like this
TextFormField(
onChanged: (val) => selectedEmail = val,
...
0
votes
1
answer
362
views
Hiding and Displaying a Form Widget in Flutter
I am aiming for my flutter page to have an 'edit' information button when the page is first loaded, whereby when this button is clicked, a Form widget appears for the user to update or 'edit' their ...
1
vote
0
answers
248
views
How to make a form in flutter so that it can be Reusable?
I have one line of code to create a form to add a product on flutter. and I made very long code for the label and text field. Can you explain the method to minimize the lines of code and make the ...
1
vote
1
answer
42
views
How to find the input form in the Flutter mobile program structure?
I have a task to solve a bug for an application form update on an application that uses Flutter when it is built. However, this is my first time using Flutter, and the program structure is a bit ...
1
vote
2
answers
2k
views
Change the error message position in Flutter
I have to make one application which take so many user input , that's why i use so many Textfiled in my code for taking user input.
An Textfiled validation time I simply use List of Global keys and it'...
0
votes
1
answer
1k
views
user registration validation in Flutter
After entering data and try to register, the data is not updating in database.
child: TextButton(
onPressed: () {
final form = _formKey.currentState;
if (form != ...
1
vote
2
answers
836
views
Time validation error on input when setting hour in flutter
Hi everyone I have some troubles with Flutter FormBuilderDateTimePicker
My problem is that when I set the value manually (with a keyboard not using graphical draggable 'arrows' offered by the widget) ...
0
votes
1
answer
740
views
How make default selection in FormBuilderDropdown list in flutter?
I am having a multiple FormBuilder dropdown in my flutter app. all of them are dependent dropdown.
i want to implement something like this:
the first of the main parent dropdown value should be auto ...
2
votes
3
answers
1k
views
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. ...
1
vote
0
answers
1k
views
How to add permissions to windows/mac flutter app
Good day,
I added these permissions to my Info.plist for ios
<key>NSPhotoLibraryUsageDescription</key>
<string>Upload images for screen background</string>
<key>...
1
vote
1
answer
1k
views
why is the form not validated? validator flutter form validation
import 'package:flutter/material.dart';
import 'package:sumanthk07/utilities/routes.dart';
class LoginPage extends StatefulWidget {
const LoginPage({Key? key}) : super(key: key);
@override
State<...
0
votes
1
answer
557
views
Flutter render overflow bottom issue on smaller devices
I have a alertdialog in my application which has come form elements init. The form is wrapped with a column widget. How ever when the keyboard opens up it throw bottom overflow issue. To solve that i ...
8
votes
2
answers
7k
views
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 ...
0
votes
1
answer
504
views
How to create and use radio field options from a database query using Flutter Form Builder
I am using flutter_form_builder in my project and want to create and load the formbuilderfieldoptions when I load the form. My strategy would be to query the database and create the options on the ...
1
vote
1
answer
3k
views
How do I style Flutter Form Builder Radio Group options?
I am using Flutter Form Builder with a FormBuilderRadioGroup but I can't figure out how to style the options which are always black. Changing the app's primary swatch makes no difference. The color ...
0
votes
0
answers
517
views
Flutter Form Builder Radio Group has no option labels
In a flutter app I using flutter_form_builder to implement a FormBuilderRadioGroup in a update form.
I have an integer field for user role and a boolean field user active which I want to set in a form....
2
votes
2
answers
5k
views
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 ...
2
votes
1
answer
3k
views
Making a field in formio calculated from other fields
Please I am using formio to create a form, within the form two fields (currency) are to be added and a total is to be generated in a field called total.
I have tried adding this custom javascript code ...
0
votes
1
answer
578
views
Flutter form builder widgets : unintentional scrolling
im using flutter_form_builder to create a form. The problem is, that when im clicking a Form checkbox, the checkbox widget moves to the top of the screen. The checkbox is contained in another stateful ...