File tree Expand file tree Collapse file tree 4 files changed +712
-691
lines changed Expand file tree Collapse file tree 4 files changed +712
-691
lines changed Original file line number Diff line number Diff line change
1
+ ## [ 2.0.2] - 26-March-2019
2
+ * Allow ` null ` s in ` FormBuilder ` controls ` attribute `
3
+
4
+ ## [ 2.0.1] - 26-March-2019
5
+ * Minor fix in documentation
6
+
1
7
## [ 2.0.1] - 26-March-2019
2
8
* Fixed bug where fields keep losing focus
3
9
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ class MyHomePageState extends State<MyHomePage> {
27
27
var data;
28
28
bool autoValidate = true ;
29
29
bool readOnly = false ;
30
+ bool showSegmentedControl = true ;
30
31
31
32
@override
32
33
Widget build (BuildContext context) {
@@ -551,7 +552,7 @@ class MyHomePageState extends State<MyHomePage> {
551
552
value: 1 ,
552
553
max: 5 ,
553
554
),
554
- FormBuilderInput .segmentedControl (
555
+ showSegmentedControl ? FormBuilderInput .segmentedControl (
555
556
decoration:
556
557
InputDecoration (labelText: "Movie Rating (Archer)" ),
557
558
attribute: "movie_rating" ,
@@ -560,7 +561,7 @@ class MyHomePageState extends State<MyHomePage> {
560
561
options: List .generate (5 , (i) => i + 1 )
561
562
.map ((number) => FormBuilderInputOption (value: number))
562
563
.toList (),
563
- ),
564
+ ) : null ,
564
565
],
565
566
),
566
567
MaterialButton (
You can’t perform that action at this time.
0 commit comments