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)
- When using globalKey.currentState?.saveAndValidate to save and validate a form, a date picker will pop up. HOT 4
- [FormBuilderDateTimePicker]: onPressed of suffixIcon don't work on Windows / Web HOT 1
- [FormBuilderRangeSlider]: Add maxRange value
- No named parameter with the name 'onPopInvoked' HOT 9
- State dos not contain all fields HOT 1
- [Field name or General]: FormBuilderDropdown silently ignores an unknown initialValue
- Resetting form shows error messages HOT 1
- Reuse same widget causes child form field to be overwritten
- [FormBuilderRadioGroup]: No way to decrease padding of Radio widget HOT 4
- [FormBuilderDateTimePicker]: Got problem if initialDate is null and lastDate is years ago.
- [FormBuilderTextField]: Cannot swith to chinese keyborad with keyboardType: TextInputType.text HOT 5
- Internal field 'isDirty' flag is reset too late.
- 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
- [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 1
- [FormBuilderTextField]: Can we add canRequestFocus
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.