@@ -49,52 +49,6 @@ class CompleteFormState extends State<CompleteForm> {
49
49
onChanged: _onChanged,
50
50
),
51
51
const SizedBox (height: 15 ),
52
- FormBuilderFilterChip (
53
- name: 'filter_chip' ,
54
- enabled: false ,
55
- decoration: const InputDecoration (
56
- labelText: 'Select many options' ,
57
- ),
58
- initialValue: ['Test' , 'Test 1' , 'Test 2' ],
59
- maxChips: 3 ,
60
- options: [
61
- FormBuilderFieldOption (
62
- value: 'Test' , child: Text ('Test' )),
63
- FormBuilderFieldOption (
64
- value: 'Test 1' , child: Text ('Test 1' )),
65
- FormBuilderFieldOption (
66
- value: 'Test 2' , child: Text ('Test 2' )),
67
- FormBuilderFieldOption (
68
- value: 'Test 3' , child: Text ('Test 3' )),
69
- FormBuilderFieldOption (
70
- value: 'Test 4' , child: Text ('Test 4' )),
71
- ],
72
- ),
73
- FormBuilderChoiceChip (
74
- name: 'choice_chip' ,
75
- decoration: const InputDecoration (
76
- labelText: 'Select an option' ,
77
- ),
78
- options: [
79
- FormBuilderFieldOption (
80
- value: 'Test' , child: Text ('Test' )),
81
- FormBuilderFieldOption (
82
- value: 'Test 1' , child: Text ('Test 1' )),
83
- FormBuilderFieldOption (
84
- value: 'Test 2' , child: Text ('Test 2' )),
85
- FormBuilderFieldOption (
86
- value: 'Test 3' , child: Text ('Test 3' )),
87
- FormBuilderFieldOption (
88
- value: 'Test 4' , child: Text ('Test 4' )),
89
- ],
90
- ),
91
- FormBuilderColorPickerField (
92
- name: 'color_picker' ,
93
- initialValue: Colors .yellow,
94
- // readOnly: true,
95
- colorPickerType: ColorPickerType .MaterialPicker ,
96
- decoration: const InputDecoration (labelText: 'Pick Color' ),
97
- ),
98
52
FormBuilderChipsInput <Contact >(
99
53
decoration: const InputDecoration (labelText: 'Chips' ),
100
54
name: 'chips_test' ,
@@ -144,40 +98,6 @@ class CompleteFormState extends State<CompleteForm> {
144
98
);
145
99
},
146
100
),
147
- FormBuilderDateTimePicker (
148
- name: 'date' ,
149
- initialValue: DateTime .now (),
150
- inputType: InputType .both,
151
- decoration: const InputDecoration (
152
- labelText: 'Appointment Time' ,
153
- ),
154
- initialTime: TimeOfDay (hour: 8 , minute: 0 ),
155
- pickerType: PickerType .cupertino,
156
- //locale: Locale.fromSubtags(languageCode: 'fr'),
157
- ),
158
- FormBuilderDateTimePicker (
159
- name: 'date_es' ,
160
- initialValue: DateTime .now (),
161
- inputType: InputType .both,
162
- decoration: const InputDecoration (
163
- labelText: 'Hora de la cita' ,
164
- ),
165
- initialTime: TimeOfDay (hour: 8 , minute: 0 ),
166
- pickerType: PickerType .cupertino,
167
- locale: Locale .fromSubtags (languageCode: 'es' ),
168
- ),
169
- FormBuilderDateRangePicker (
170
- name: 'date_range' ,
171
- firstDate: DateTime (1970 ),
172
- lastDate: DateTime (2030 ),
173
- format: DateFormat ('yyyy-MM-dd' ),
174
- onChanged: _onChanged,
175
- decoration: const InputDecoration (
176
- labelText: 'Date Range' ,
177
- helperText: 'Helper text' ,
178
- hintText: 'Hint text' ,
179
- ),
180
- ),
181
101
FormBuilderSlider (
182
102
name: 'slider' ,
183
103
validator: FormBuilderValidators .compose ([
@@ -292,35 +212,6 @@ class CompleteFormState extends State<CompleteForm> {
292
212
});
293
213
},
294
214
),
295
- FormBuilderTypeAhead <String >(
296
- decoration: const InputDecoration (
297
- labelText: 'Country' ,
298
- ),
299
- name: 'country' ,
300
- onChanged: _onChanged,
301
- itemBuilder: (context, country) {
302
- return ListTile (
303
- title: Text (country),
304
- );
305
- },
306
- controller: TextEditingController (text: '' ),
307
- initialValue: 'Uganda' ,
308
- suggestionsCallback: (query) {
309
- if (query.isNotEmpty) {
310
- var lowercaseQuery = query.toLowerCase ();
311
- return allCountries.where ((country) {
312
- return country.toLowerCase ().contains (lowercaseQuery);
313
- }).toList (growable: false )
314
- ..sort ((a, b) => a
315
- .toLowerCase ()
316
- .indexOf (lowercaseQuery)
317
- .compareTo (
318
- b.toLowerCase ().indexOf (lowercaseQuery)));
319
- } else {
320
- return allCountries;
321
- }
322
- },
323
- ),
324
215
FormBuilderRadioGroup <String >(
325
216
decoration: const InputDecoration (
326
217
labelText: 'My chosen language' ,
@@ -362,24 +253,6 @@ class CompleteFormState extends State<CompleteForm> {
362
253
initialValue: true ,
363
254
onChanged: _onChanged,
364
255
),
365
- FormBuilderTouchSpin (
366
- decoration: const InputDecoration (labelText: 'TouchSpin' ),
367
- name: 'touch_spin' ,
368
- initialValue: 10 ,
369
- step: 1 ,
370
- iconSize: 48.0 ,
371
- addIcon: const Icon (Icons .arrow_right),
372
- subtractIcon: const Icon (Icons .arrow_left),
373
- ),
374
- FormBuilderRating (
375
- decoration:
376
- const InputDecoration (labelText: 'Rate this form' ),
377
- name: 'rate' ,
378
- iconSize: 32.0 ,
379
- initialValue: 1.0 ,
380
- max: 5.0 ,
381
- onChanged: _onChanged,
382
- ),
383
256
FormBuilderCheckboxGroup (
384
257
decoration: const InputDecoration (
385
258
labelText: 'The language of my people' ),
@@ -399,15 +272,6 @@ class CompleteFormState extends State<CompleteForm> {
399
272
color: Colors .red,
400
273
),
401
274
),
402
- FormBuilderSignaturePad (
403
- decoration: const InputDecoration (
404
- labelText: 'Signature' ,
405
- border: OutlineInputBorder (),
406
- ),
407
- name: 'signature' ,
408
- border: Border .all (color: Colors .green),
409
- onChanged: _onChanged,
410
- ),
411
275
],
412
276
),
413
277
),
0 commit comments