Questions tagged [flutter-reactive-forms]
11 questions
6
votes
2 answers
Flutter - Bind form to model
I'm using reactive_forms in Flutter which is a model-driven forms library which takes inspiration from Angular Reactive Forms.
It is fairly simple, to add a form with one formControl called 'nickName':
final _form = FormGroup({
'nickName':
…

BeniaminoBaggins
- 11,202
- 41
- 152
- 287
1
vote
1 answer
Flutter reactive_forms - Cannot clear a custom form control
I can't set my custom reactive_forms control to null. The value seems to stay in it when the FormGroup has no value in the field. But in the custom control builder it has the field and says it has a value. The binding of the control is not in sync…

BeniaminoBaggins
- 11,202
- 41
- 152
- 287
1
vote
1 answer
Flutter - Cubit - loaded state - managing redirection to a page - 2 builds of the page are made
Sorry for my english I'm French.
I develop in Flutter (dart) and I experience a strange behavior in my code using Cubit (Bloc) when I want to redirect to a page after a form submission (with "Reactive forms" package, but also with classic form) and…

Johann
- 13
- 1
- 4
1
vote
1 answer
Flutter conditional rendering of 2 forms - duplicates the form values to the other form
I'm trying to do conditional rendering of two forms, using flutter reactive_forms. But when I type into one form, then click a button which renders the other form in the exact same place, the same values remain in the other form as well. The only…

BeniaminoBaggins
- 11,202
- 41
- 152
- 287
0
votes
0 answers
How can I access Country Name in ISO formate from ReactivePhoneFormField widget?
How can I access Country Name or Nationality from the following after a country iso is selected by the user:
ReactivePhoneFormField(
defaultCountry: IsoCode.GB,
decoration: InputDecoration(
…

Bilal Saeed
- 2,092
- 8
- 31
0
votes
2 answers
Reactive Forms : Listen changes in ReactiveTextField in flutter?
I'm using flutter Reactive Forms and I want to enable/disable a button dynamically while user is editing the textfield.
I saw in the Reactive Forms documentation they said like this:
Because of the two-binding capability of the ReactiveTextField…

happycoder
- 927
- 3
- 13
- 28
0
votes
1 answer
Flutter Form Field floating at the top
I am having an issue with flutter forms.
Basically I have 3 simple rows added to a Stack. The last one contains a form. Below that there are 'Pinned' elements by Adobe XD, but the row containing the form is floating at the top of the screen... I…

Fewture Webdesign
- 128
- 10
0
votes
1 answer
Why reactiveTextFields doesn't work well when in different class than FormGroup?
I have a class where I initialized FormGroup:
final form = FormGroup(
{
'oldPassword': FormControl(
value: null,
validators: [
Validators.required,
],
),
'newPassword':…

Darexad
- 312
- 3
- 7
0
votes
2 answers
How to use reactive_forms ReactiveFormArray in flutter?
I was trying to create dynamic array of fields in flutter, reactive_forms was best choice. But there is no documentation for ReactiveFormArray which i need to use.
Did some trial and error and found the way to use it. Below is the answer.

Mohemmed Niyaz
- 214
- 2
- 8
0
votes
1 answer
reactive_forms Flutter - creating and rendering Groups
Having difficulty figuring how to render groups as their example (https://github.com/joanpablo/reactive_forms#groups-of-groups-grin):
final form = FormGroup({
'personal': FormGroup({
'name': FormControl(validators:…

Effie
- 157
- 1
- 2
- 7
-1
votes
1 answer
Why is Bloc state not updating when using reactive_forms in flutter?
I am using flutter with reactive_forms package and BLoC. I tried to outsource the FormGroup to BLoC state class and providing it to the ReactiveFormBuilder using BlocBuilder widget.
Flutter Bloc - Profile State:
BLOC STATE
class ProfileState extends…

Arham S C
- 109
- 5