We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b59091 commit b56fca8Copy full SHA for b56fca8
example/lib/great_form.dart
@@ -37,6 +37,14 @@ class GreatForm extends FancyManager {
37
FancyValidator.notEmpty(value),
38
],
39
),
40
+ FancyInput(
41
+ id: 'cpf',
42
+ mask: '###.###.###-##',
43
+ rules: (value) => [
44
+ FancyValidator.notEmpty(value),
45
+ FancyValidator.validCPF(value),
46
+ ],
47
+ ),
48
FancyInput(
49
id: 'notes',
50
rules: (value) => [],
example/lib/main.dart
@@ -99,6 +99,16 @@ class _SimpleFormScreenState extends State<SimpleFormScreen> {
99
100
maxLines: 4,
101
102
+ FancyFormField(
103
+ fancyKey: FancyKey(
104
105
+ formManager: greatForm,
106
107
+ decoration: InputDecoration(
108
+ labelText: 'CPF',
109
+ hintText: 'Enter your CPF.',
110
111
112
SizedBox(
113
height: 12,
114
0 commit comments