Comments (6)
`_formList.add(
FormBuilderDropdown(
attribute: "test",
decoration: InputDecoration(labelText: "test"),
items: _accountTypeOptionsList,
initialValue: _accountTypeOptionsList[0].value,
validators: [],
onChanged: (value) {
_fbKey.currentState.reset();
if (value == 0) {
_formList.add(
FormBuilderTextField(
attribute: 'attribute',
decoration: InputDecoration(
labelText: 'test',
hintText: 'test',
enabledBorder: UnderlineInputBorder(
borderSide: BorderSide(width: 0.2),
),
focusedBorder: UnderlineInputBorder(
borderSide: BorderSide(width: 0.2, color: Common.themeColor()),
),
),
validators: [],
),
);
}else {
_formList.removeLast();
}
setState(() {
});
print(value);
},
)
);`
from flutter_form_builder.
Hi @pcccccc,
Kindly include more code so that I can have working code to reproduce the error.
from flutter_form_builder.
@danvick
main.dart.zip
pubspec.yaml : flutter_form_builder: ^3.0.0-beta.9
from flutter_form_builder.
I've gone through the bug and it has unraveled a fundamental issue in the package. Consequently I've published version 3.0.0-beta.10 which addresses the issue.
Kindly update and let me know if the problem has been sorted.
It's working well on my side after the update.
Thanks for bringing this up as it has helped us stabilize the package further as the release of v3 is nearing.
from flutter_form_builder.
use 3.0.0-beta.10
@danvick thx
from flutter_form_builder.
hi @danvick i am also facing same issue.
i had made use of flutter form builder updated package for building dynamic form. all working good. even if i remove last item from list in remove properly using removeAt(index) but when i try to remove middle index it throw error attribute id already exist. what goes wrong.
from flutter_form_builder.
Related Issues (20)
- FormBuilderDropdown onChanged fires twice during form Reset HOT 1
- FormBuilderDropdown when selected keeps triggering a rebuild HOT 1
- [Documentation] RaisedButton is removed.
- [FormBuilderTextField]: TextInputType.emailAddress - not working HOT 1
- [FormBuilderTextField]: Cannot type the latin text (Vietnamese) on Android HOT 4
- [General]: Add support for lists with multiple fields in each item HOT 1
- [Localizations]: Language code fow Swedish is wrong HOT 2
- [FormBuilderTextField]: Can we add canRequestFocus HOT 1
- Create custom text field using FormBuilderField
- [FormBuilderField & FormBuilder]: Unexpected retention of `initialValue` when coerced widget recreation
- [FormBuilderField]: Add "resetError" method
- [FormBuilderDateTimePicker]: FormBuilderDateTimePicker not allow me to use 12Hour Format
- [General]: Validation focuses latest invalid field instead of first
- [General]: dependency conflict with intl package version
- [General]: Field deletion in the dynamic form example is not working properly.
- [FormBuilderDropdown]: wrong alignment when using flutter sdk 3.22.0 HOT 3
- [Formbuilder radio button]: postion of the radio button
- [FormBuilderDropdown]: Not reverting to initial value upon form reset HOT 1
- FormBuilderCheckboxGroup Auto save when checked.
- Add autoScrollWhenFocusOnInvalid to the documentaiton
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_form_builder.