Skip to content

Commit 66633c7

Browse files
committed
Updated docs
1 parent 2cefe57 commit 66633c7

File tree

5,504 files changed

+5535
-5550
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,504 files changed

+5535
-5550
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
## [3.3.1] - 28-Jul-2019
2+
* Fixed bugs in `FormBuilderDateTimePicker`
3+
* Minor improvements to documentation
4+
15
## [3.3.0] - 28-Jul-2019
2-
* New Feature: You can now set `initialValue` for the Form - Accepts a `Map<String, dynamic>` where keys are `attribute`s and the values are `initialValue`s for corresponding fields
6+
* New Feature: You can now set `initialValue` for `FormBuilder` - Accepts a `Map<String, dynamic>` where keys are `attribute`s and the values are `initialValue`s for corresponding fields
37
* New Field: `FormBuilderRangeSlider`
48
* Compatibility with newly released Flutter version `1.7.*`
59
* `Breaking change:` Renamed occurrences of `readonly` to `readOnly` to fit naming conventions

README.md

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ Column(
1616
children: <Widget>[
1717
FormBuilder(
1818
key: _fbKey,
19+
initialValue: {
20+
'date': DateTime.now(),
21+
'accept_terms': false,
22+
},
1923
autovalidate: true,
2024
child: Column(
2125
children: <Widget>[
@@ -34,11 +38,10 @@ Column(
3438
initialValue: 1.0,
3539
divisions: 20,
3640
decoration:
37-
InputDecoration(labelText: "Number of somethings"),
41+
InputDecoration(labelText: "Number of things"),
3842
),
3943
FormBuilderCheckbox(
4044
attribute: 'accept_terms',
41-
initialValue: false,
4245
label: Text(
4346
"I have read and agree to the terms and conditions"),
4447
validators: [
@@ -68,21 +71,6 @@ Column(
6871
FormBuilderValidators.max(70),
6972
],
7073
),
71-
FormBuilderRadio(
72-
decoration: InputDecoration(labelText: 'My chosen language'),
73-
leadingInput: true,
74-
attribute: "best_language",
75-
validators: [FormBuilderValidators.required()],
76-
options: [
77-
"Dart",
78-
"Kotlin",
79-
"Java",
80-
"Swift",
81-
"Objective-C"
82-
]
83-
.map((lang) => FormBuilderFieldOption(value: lang))
84-
.toList(growable: false),
85-
),
8674
FormBuilderSegmentedControl(
8775
decoration:
8876
InputDecoration(labelText: "Movie Rating (Archer)"),
@@ -169,7 +157,7 @@ The currently supported fields include:
169157
* `FormBuilderSlider` - For selection of a numerical value on a slider
170158
* `FormBuilderStepper` - Selection of a number by tapping on a plus or minus symbol
171159
* `FormBuilderSwitch` - On/Off switch
172-
* `FormBuilderTextField` - For text input. Allows input of single-line text, multi-line text, password,
160+
* `FormBuilderTextField` - For text input. Accepts input of single-line text, multi-line text, password,
173161
email, urls etc by using different configurations and validators
174162
* `FormBuilderTypeAhead` - Auto-completes user input from a list of items
175163

@@ -179,7 +167,7 @@ In order to create an input field in the form, along with the label, and any app
179167
|-----------|-------|---------|-------------|----------|
180168
| `attribute` | `String` | `null` | `true` | This will form the key in the form value Map |
181169
| `initialValue` | `dynamic` | `null` | `false` | The initial value of the input field |
182-
| `readonly` | `bool` | `false` | `false` | Determines whether the field widget will accept user input. This value will be ignored if the `readonly` attribute of `FormBuilder` widget is set to `true` |
170+
| `readOnly` | `bool` | `false` | `false` | Determines whether the field widget will accept user input. This value will be ignored if the `readOnly` attribute of `FormBuilder` widget is set to `true` |
183171
| `decoration` | `InputDecoration` | `InputDecoration()` | `false` | |
184172
| `validators` | `List<FormFieldValidator>` | `[]` | `false` | List of `FormFieldValidator`s that will check the validity of value candidate in the `FormField` |
185173
| `onChanged` | `ValueChanged<T>` | `null` | `false` | This event function will fire immediately the the field value changes |

doc/api/__404error.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ <h1>404: Something's gone wrong :-(</h1>
8686

8787
<footer>
8888
<span class="no-break">
89-
flutter_form_builder 3.3.0
89+
flutter_form_builder 3.3.1
9090
</span>
9191

9292

doc/api/dart-async/AsyncError-class.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ <h2>Operators</h2>
254254

255255
<footer>
256256
<span class="no-break">
257-
flutter_form_builder 3.3.0
257+
flutter_form_builder 3.3.1
258258
</span>
259259

260260

doc/api/dart-async/AsyncError/AsyncError.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ <h2><span>Implementation</span></h2>
9999

100100
<footer>
101101
<span class="no-break">
102-
flutter_form_builder 3.3.0
102+
flutter_form_builder 3.3.1
103103
</span>
104104

105105

doc/api/dart-async/AsyncError/error.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ <h2><span>Implementation</span></h2>
100100

101101
<footer>
102102
<span class="no-break">
103-
flutter_form_builder 3.3.0
103+
flutter_form_builder 3.3.1
104104
</span>
105105

106106

doc/api/dart-async/AsyncError/stackTrace.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ <h2><span>Implementation</span></h2>
100100

101101
<footer>
102102
<span class="no-break">
103-
flutter_form_builder 3.3.0
103+
flutter_form_builder 3.3.1
104104
</span>
105105

106106

doc/api/dart-async/AsyncError/toString.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ <h2><span>Implementation</span></h2>
103103

104104
<footer>
105105
<span class="no-break">
106-
flutter_form_builder 3.3.0
106+
flutter_form_builder 3.3.1
107107
</span>
108108

109109

doc/api/dart-async/Completer-class.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ <h2>Operators</h2>
306306

307307
<footer>
308308
<span class="no-break">
309-
flutter_form_builder 3.3.0
309+
flutter_form_builder 3.3.1
310310
</span>
311311

312312

doc/api/dart-async/Completer/Completer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ <h2><span>Implementation</span></h2>
119119

120120
<footer>
121121
<span class="no-break">
122-
flutter_form_builder 3.3.0
122+
flutter_form_builder 3.3.1
123123
</span>
124124

125125

0 commit comments

Comments
 (0)