Skip to content

Commit edf0ab3

Browse files
committed
Release v3.0.0-beta.1
1 parent 75819c3 commit edf0ab3

File tree

6 files changed

+225
-225
lines changed

6 files changed

+225
-225
lines changed

.idea/dictionaries/danvick.xml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

Lines changed: 188 additions & 212 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## [3.0.0-beta.1] - 04-April-2019
2+
* Complete rewrite of the package - stateful
3+
* Contains `FormBuilderField` for creation of custom `FormField`s
4+
* New attribute `validators` allows composability and reusability of different `FormFieldValidator`
5+
functions that do different validations
6+
* New Feature `FormBuilderValidators` comes with common validation functionality options such as:
7+
required, min, max,
8+
19
## [2.0.3] - 26-March-2019
210
* Allow `null`s in `FormBuilder` controls `attribute`
311

@@ -9,8 +17,10 @@
917

1018
## [2.0.0] - 25-March-2019
1119
### New Features and fixes
12-
* New attribute `decoration` for `FormBuilderInput`. Enables one to customize `InputDecoration` like icons, labelStyles etc
13-
* Added ability to add `GlobalKey` of type `FormBuilderState` to FormBuilder that will be the handle to the
20+
* New attribute `decoration` for `FormBuilderInput`. Enables one to customize `InputDecoration`
21+
like icons, labelStyles etc
22+
* Added ability to add `GlobalKey` of type `FormBuilderState` to FormBuilder that will be
23+
the handle to the
1424
state of the form enabling saving and resetting. Similar to using Flutter's `Form`.
1525
* Added new input type `FormBuilder.signaturePad` which provides a drawing pad for user signature
1626
* Added `max` attribute to `chipsInput` to limit the number of chips users can add
@@ -27,13 +37,18 @@ Access form state using a `GlobalKey<FormBilderState>`
2737
* Fixed bugs originating from upgrading `flutter_typeahead` from v0.5.1 to v1.2.1
2838

2939
## [1.5.0] - 20-March-2019
30-
* Now using `datetime_picker_formfield` plugin from pub for DatePicker and TimePicker. Should close [#33](https://github.com/danvick/flutter_form_builder/issues/33)
40+
* Now using `datetime_picker_formfield` plugin from pub for DatePicker and TimePicker.
41+
Should close [#33](https://github.com/danvick/flutter_form_builder/issues/33)
3142
* Added new `FormBuilderInput` - DateTimePicker
32-
* **Breaking change**: DatePicker, TimePicker & DateTimePicker now return an object of type `DateTime` instead of `String`
43+
* **Breaking change**: DatePicker, TimePicker & DateTimePicker now return an object of
44+
type `DateTime` instead of `String`
3345
* Upgraded `flutter_typeahead` from v0.5.1 to v1.2.1 - comes with more widgets options
3446

3547
## [1.4.0] - 29-Jan-2019
36-
* The entire form or individual controls can now be made readonly by making `readonly` property to `true`. Default value is `false`. Closes [#11](https://github.com/danvick/flutter_form_builder/issues/11) and[#16](https://github.com/danvick/flutter_form_builder/issues/16)
48+
* The entire form or individual controls can now be made readonly by making `readonly` property
49+
to `true`. Default value is `false`.
50+
Closes [#11](https://github.com/danvick/flutter_form_builder/issues/11) and
51+
[#16](https://github.com/danvick/flutter_form_builder/issues/16)
3752

3853
## [1.3.5] - 28-Jan-2019
3954
* Fixed bug on Slider where current value not updated on slider & label
@@ -49,8 +64,10 @@ Bug fix: Imported `dart:async` for use of `Future`s to be compatible with Dart <
4964
* Fixed bug where `lastDate` and `firstDate` for DatePicker don't work
5065

5166
## [1.3.1] - 17-Dec-2018
52-
* Moved ChipsInput into own library on pub.dartlang.org, check it out [here](https://pub.dartlang.org/packages/flutter_chips_input)
53-
* Updated example code to include proper use of Form's `onChanged` function after update. Closes [#8](https://github.com/danvick/flutter_form_builder/issues/8)
67+
* Moved ChipsInput into own library on pub.dartlang.org,
68+
check it out [here](https://pub.dartlang.org/packages/flutter_chips_input)
69+
* Updated example code to include proper use of Form's `onChanged` function after update.
70+
Closes [#8](https://github.com/danvick/flutter_form_builder/issues/8)
5471

5572
## [1.3.0] - 15-Dec-2018
5673
* Fixed bug where TypeAhead value reset when other fields are updated
@@ -66,7 +83,8 @@ Bug fix: Imported `dart:async` for use of `Future`s to be compatible with Dart <
6683
* Some bugs introduced, to be fixed later
6784

6885
## [1.1.0] - 19-Nov-2018
69-
* Fixed bug where validation not working for fields outside screen (when using ListView) - [Flutter Issue #17385](https://github.com/flutter/flutter/issues/17385)
86+
* Fixed bug where validation not working for fields outside screen (when using ListView) -
87+
[Flutter Issue #17385](https://github.com/flutter/flutter/issues/17385)
7088
* Added InputDecoration for all custom FormFields
7189

7290
## [1.0.2] - 7-Nov-2018

lib/src/form_builder_field.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ class FormBuilderFieldState<T> extends State<FormBuilderField<T>> {
4747
if (widget.formField.validator != null)
4848
return widget.formField.validator(val);
4949
},
50-
builder: widget.formField.builder ?? (FormField<T> field) => Container(),
50+
builder:
51+
widget.formField.builder ?? (FormField<T> field) => Container(),
5152
enabled: widget.formField.enabled,
5253
autovalidate: widget.formField.autovalidate,
5354
initialValue: widget.formField.initialValue,

lib/src/inputs/form_builder_dropdown.dart

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,11 @@ class _FormBuilderDropdownState extends State<FormBuilderDropdown> {
7878
disabledHint: widget.disabledHint,
7979
elevation: widget.elevation,
8080
iconSize: widget.iconSize,
81-
onChanged: _readonly ? null : (value) {
82-
field.didChange(value);
83-
},
81+
onChanged: _readonly
82+
? null
83+
: (value) {
84+
field.didChange(value);
85+
},
8486
),
8587
);
8688
},

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_form_builder
22
description: Package to build Material Form with components such as TextField (With number, url, email validation), DropDown, TypeAhead, Radios, Checkboxes
3-
version: 3.0.0
3+
version: 3.0.0-beta.1
44
author: Danvick Miller <[email protected]>
55
homepage: https://github.com/danvick/flutter_form_builder
66

0 commit comments

Comments
 (0)