Skip to content

Commit a49a9f6

Browse files
Merge pull request #25 from flutter-form-builder-ecosystem/release/8.4.0
Release/8.4.0
2 parents c826e28 + c1c697c commit a49a9f6

File tree

6 files changed

+46
-32
lines changed

6 files changed

+46
-32
lines changed

CHANGELOG.md

Lines changed: 34 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,102 +1,113 @@
1-
## [8.3.0] - 28-Jul-2022
1+
## 8.4.0
2+
3+
* Refactor l10n generator. Thanks [@ipcjs]()
4+
* Add property to allow empty on equalLength validator. Thanks [@CircleCurve](https://github.com/CircleCurve)
5+
* Add support for more languanges
6+
- Czech. Thanks [@edlman](https://github.com/flutter-form-builder-ecosystem/form_builder_validators/pull/3)
7+
- Bosnian and Croatian. Thanks [@abratanovic](https://github.com/flutter-form-builder-ecosystem/form_builder_validators/pull/9)
8+
- Malay. Thanks [@azmilazizi](https://github.com/flutter-form-builder-ecosystem/form_builder_validators/pull/13)
9+
- Thai. Thanks [@narospol](https://github.com/flutter-form-builder-ecosystem/form_builder_validators/pull/19)
10+
-
11+
12+
## 8.3.0
213

314
* Apply license BSD-3-clause
415
* Refactor readme
516
* Remove unused dependency
617
* Add web example
718

8-
## [8.2.1] - 20-Jul-2022
19+
## 8.2.1
920

1021
* Added Czech language support
1122

12-
## [8.2.0] - 12-Jul-2022
23+
## 8.2.0
1324

1425
* Added equalLength validator
1526
* Added turkish language support
1627
* Moved repository
1728

18-
## [8.1.1] - 26-Apr-2022
29+
## 8.1.1
1930

2031
* Fixed issue where email validator trims string before validation
2132

22-
## [8.1.0] - 13-Apr-2022
33+
## 8.1.0
2334

2435
* Added Romanian (ro) language support
2536

26-
## [8.0.0] - 10-Apr-2022
37+
## 8.0.0
2738

2839
* **BREAKING CHANGE**: Avoid passing context to validator functions.
2940
* Added Swahili (sw) language support
3041

31-
## [7.9.0] - 04-Apr-2022
42+
## 7.9.0
3243

3344
* Added Bangla (bn) language support
3445

35-
## [7.8.0] - 29-Mar-2022
46+
## 7.8.0
3647

3748
* Added Estonian (et) language support
3849
* Improved and corrected Arabic translations
3950

40-
## [7.7.0] - 15-Mar-2022
51+
## 7.7.0
4152

4253
* Added Catalan (ca) language support
4354

44-
## [7.6.1] - 19-Feb-2022
55+
## 7.6.1
4556

4657
* Fixed duplicate `en` locale translations. Fixes #969
4758

48-
## [7.6.0] - 18-Feb-2022
59+
## 7.6.0
4960

5061
* Added Ukrainian (uk) language support
5162

52-
## [7.5.0] - 17-Feb-2022
63+
## 7.5.0
5364

5465
* Added Lao (lo) language support
5566
* Added Dutch (nl) language support
5667

57-
## [7.4.0] - 31-Jan-2022
68+
## 7.4.0
5869

5970
* Added Russian (ru) language support
6071

61-
## [7.3.0] - 10-Jan-2022
72+
## 7.3.0
6273

6374
* Added support for Slovenian (sl)
6475
* Added Chinese language support - both traditional (zh_Hant) and simplified (zh_Hans)
6576

66-
## [7.2.0] - 06-Nov-2021
77+
## 7.2.0
6778

6879
* Added language support for Indonesian (id)
6980

70-
## [7.1.0] - 06-Nov-2021
81+
## 7.1.0
7182

7283
* Added language support for Korean (ko)
7384

74-
## [7.0.0] - 02-Sep-2021
85+
## 7.0.0
7586

76-
* New Package 🎉🎊 - Split from and no dependency on [flutter_form_builder](https://pub.dev/packages/flutter_form_builder)
87+
* New Package 🎉🎊 - Split from and no dependency on flutter_form_builder(https://pub.dev/packages/flutter_form_builder)
7788
* Added Arabic and Persian/Farsi support
7889
* Use `intl_utils` package for localization
7990
* Minor type fixes
8091
* Documentation and example improvements
8192

82-
## [7.0.0-RC.1] - 02-Sep-2021
93+
## 7.0.0-RC.1
8394

8495
* `maxLength` and `minLength` validators can now work with `Iterable` field values length
8596

86-
## [7.0.0-RC.0] - 01-Sep-2021
97+
## 7.0.0-RC.0
8798

8899
* Added Arabic and Persian/Farsi support
89100

90-
## [7.0.0-beta.0] - 19-May-2021
101+
## 7.0.0-beta.0
91102

92103
* Use `intl_utils` package for localization
93104
* Documentation and example improvements - added instructions for localization
94105
* Minor type fixes
95106

96-
## [7.0.0-alpha.2] - 17-May-2021
107+
## 7.0.0-alpha.2
97108

98109
* Improvements to package documentation and example
99110

100-
## [7.0.0-alpha.1] - 16-May-2021
111+
## 7.0.0-alpha.1
101112

102113
* Split into own package from `flutter_form_builder`

example/lib/home_page.dart

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
22
import 'package:form_builder_validators/form_builder_validators.dart';
33

44
class HomePage extends StatefulWidget {
5-
const HomePage({Key key}) : super(key: key);
5+
const HomePage({Key? key}) : super(key: key);
66

77
@override
88
HomePageState createState() => HomePageState();
@@ -42,9 +42,11 @@ class HomePageState extends State<HomePage> {
4242
/// Include your own custom `FormFieldValidator` function, if you want
4343
/// Ensures positive values only. We could also have used `FormBuilderValidators.min( 0)` instead
4444
(val) {
45-
final number = int.tryParse(val);
46-
if (number == null) return null;
47-
if (number < 0) return 'We cannot have a negative age';
45+
if (val != null) {
46+
final number = int.tryParse(val);
47+
if (number == null) return null;
48+
if (number < 0) return 'We cannot have a negative age';
49+
}
4850
return null;
4951
}
5052
]),

example/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ void main() {
1010
}
1111

1212
class MyApp extends StatelessWidget {
13-
const MyApp({Key key}) : super(key: key);
13+
const MyApp({Key? key}) : super(key: key);
1414

1515
@override
1616
Widget build(BuildContext context) {

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ packages:
7171
path: ".."
7272
relative: true
7373
source: path
74-
version: "8.3.0"
74+
version: "8.4.0"
7575
intl:
7676
dependency: transitive
7777
description:

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
44
version: 1.0.0+1
55

66
environment:
7-
sdk: ">=2.7.0 <3.0.0"
7+
sdk: ">=2.12.0 <3.0.0"
88
flutter: ">=3.0.0"
99

1010
dependencies:

pubspec.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: form_builder_validators
22
description: Form Builder Validators set of validators for FlutterFormBuilder. Provides common validators and a way to make your own.
3-
version: 8.3.0
4-
homepage: https://github.com/flutter-form-builder-ecosystem/form_builder_validators
3+
version: 8.4.0
4+
repository: https://github.com/flutter-form-builder-ecosystem/form_builder_validators
55
issue_tracker: https://github.com/flutter-form-builder-ecosystem/form_builder_validators/issues
6+
funding: https://opencollective.com/flutter-form-builder-ecosystem
67

78
environment:
89
sdk: ">=2.12.0 <3.0.0"

0 commit comments

Comments
 (0)