Form
Last updated
Last updated
CForm(
type: CFormType.blank,
action: CButton(
label: 'Action Button',
onTap: () {},
icon: Icon(CIcons.add, size: 16),
),
children: [
CTextField(label: 'Label', description: 'Description'),
const SizedBox(height: 16),
CTextField(
label: 'Label',
description: 'Description',
validator: (value) {
return CValidationResult(
kind: CValidationKind.error,
message: 'Your input is incorrect',
);
},
),
],
);