Skip to content

Commit

Permalink
chore: v0.4.0 (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
felangel authored Apr 26, 2021
1 parent 77123bc commit 51da5ba
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 0.4.0

- **BREAKING**: opt into null safety
- feat!: upgrade Dart SDK constraints to `>=2.12.0-0 <3.0.0`

# 0.4.0-nullsafety.0

- **BREAKING**: opt into null safety
Expand Down
4 changes: 2 additions & 2 deletions example/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class NameInput extends FormzInput<String, NameInputError> {

// Override validator to handle validating a given input value.
@override
NameInputError? validator(String? value) {
return value?.isNotEmpty == true ? null : NameInputError.empty;
NameInputError? validator(String value) {
return value.isNotEmpty == true ? null : NameInputError.empty;
}
}

Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ issue_tracker: https://github.com/ChicagoFlutter/formz/issues
homepage: https://github.com/ChicagoFlutter/formz
documentation: https://github.com/ChicagoFlutter/formz

version: 0.4.0-nullsafety.0
version: 0.4.0

environment:
sdk: ">=2.12.0-0 <3.0.0"

dev_dependencies:
coverage: ^0.14.2
test: ^1.16.0-nullsafety.9
test: ^1.16.0

0 comments on commit 51da5ba

Please sign in to comment.