Skip to content

Commit 2c11b12

Browse files
committed
feat: more documentation improvements
1 parent 57ec3ff commit 2c11b12

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ Also included is the `l10n` / `i18n` of error text messages to multiple language
3838
## Features
3939

4040
- Ready-made validation rules
41-
- Multiple form inputs validators
42-
- Default error messages in several languages
41+
- Compose multiple reusable validation rules
42+
- Default error messages in multiple languages
4343

4444
## Validators
4545

@@ -136,7 +136,7 @@ return MaterialApp(
136136

137137
### Basic use
138138

139-
```dart
139+
```Dart
140140
TextFormField(
141141
decoration: InputDecoration(labelText: 'Name'),
142142
autovalidateMode: AutovalidateMode.always,
@@ -156,7 +156,7 @@ On validation, each validator is run, and if any validator returns a non-null va
156156

157157
Example:
158158

159-
```dart
159+
```Dart
160160
TextFormField(
161161
decoration: InputDecoration(labelText: 'Age'),
162162
keyboardType: TextInputType.number,
@@ -178,7 +178,7 @@ TextFormField(
178178
if (number == null) return null;
179179
if (number < 0) return 'We cannot have a negative age';
180180
return null;
181-
}
181+
},
182182
]),
183183
),
184184
```
@@ -258,4 +258,4 @@ Take a look at [our fantastic ecosystem](https://github.com/flutter-form-builder
258258

259259
## Thanks to
260260

261-
[All constributors](https://github.com/flutter-form-builder-ecosystem/form_builder_validators/graphs/contributors)
261+
[All contributors](https://github.com/flutter-form-builder-ecosystem/form_builder_validators/graphs/contributors)

0 commit comments

Comments
 (0)