File tree Expand file tree Collapse file tree 2 files changed +12
-19
lines changed Expand file tree Collapse file tree 2 files changed +12
-19
lines changed Original file line number Diff line number Diff line change @@ -196,21 +196,16 @@ Widget build(BuildContext context) {
196
196
TextSpan(
197
197
text: 'Terms and Conditions',
198
198
style: TextStyle(color: Colors.blue),
199
- recognizer: TapGestureRecognizer()
200
- ..onTap = () {
201
- print('launch url');
202
- },
203
199
),
204
200
],
205
201
),
206
202
),
207
- validator: FormBuilderValidators.compose([
208
- FormBuilderValidators.requireTrue(
209
- context,
210
- errorText:
211
- 'You must accept terms and conditions to continue',
212
- ),
213
- ]),
203
+ validator: FormBuilderValidators.equal(
204
+ context,
205
+ true,
206
+ errorText:
207
+ 'You must accept terms and conditions to continue',
208
+ ),
214
209
),
215
210
FormBuilderTextField(
216
211
name: 'age',
Original file line number Diff line number Diff line change @@ -233,14 +233,12 @@ class CompleteFormState extends State<CompleteForm> {
233
233
],
234
234
),
235
235
),
236
- validator: FormBuilderValidators .compose ([
237
- FormBuilderValidators .equal (
238
- context,
239
- true ,
240
- errorText:
241
- 'You must accept terms and conditions to continue' ,
242
- ),
243
- ]),
236
+ validator: FormBuilderValidators .equal (
237
+ context,
238
+ true ,
239
+ errorText:
240
+ 'You must accept terms and conditions to continue' ,
241
+ ),
244
242
),
245
243
FormBuilderTextField (
246
244
autovalidateMode: AutovalidateMode .always,
You can’t perform that action at this time.
0 commit comments