Skip to content

Commit 567fd59

Browse files
chore: Initial commit
1 parent 6c611f4 commit 567fd59

File tree

143 files changed

+8442
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+8442
-0
lines changed

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# github: [danvick]
2+
custom: https://www.buymeacoffee.com/danvick
3+
patreon: danvick

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
name: "\U0001F41B Bug"
3+
about: Something is crashing or not working as intended
4+
labels: bug
5+
6+
---
7+
8+
## Environment
9+
10+
**Package name and version:** <!-- flutter_form_builder, form_builder_extra_field or form_builder_validators with version-->
11+
12+
<details>
13+
<summary>Flutter doctor</summary>
14+
15+
<!-- Paste the output of running `flutter doctor -v` below inside ``` and ``` -->
16+
```
17+
```
18+
19+
</details>
20+
21+
<details>
22+
<summary>Code sample</summary>
23+
24+
<!--
25+
Please create a minimal reproducible sample that shows the problem
26+
and attach it below between the lines with the backticks.
27+
28+
You can use a example code or Flutter sample app
29+
30+
Without this we will unlikely be able to progress on the issue, and because of that
31+
we regretfully will have to close it.
32+
-->
33+
34+
```dart
35+
```
36+
37+
</details>
38+
39+
## Description
40+
41+
**Expected behavior:**
42+
43+
**Current behavior:**
44+
45+
## Steps to reproduce
46+
47+
1. This
48+
2. Than that
49+
3. Then
50+
51+
## Images <!-- if available, else delete -->
52+
53+
## Stacktrace/Logcat <!-- if available, else delete -->
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: "\U0001F4C3 Documentation Bug"
3+
about: You want to report something that is wrong or missing from the documentation.
4+
labels: documentation
5+
6+
---
7+
8+
### Describe the change you would like to see
9+
<!-- A clear and concise description of the bug or documentation you feel is missing.
10+
For example: The Technical Reference does not include information about the FormBuilderFilterChip widget. -->
11+
12+
### How would the suggested change make the documentation more useful?
13+
<!-- Provide context for how the requested change would make the docs easier to use and improve your ability to develop successful applications with this packages.
14+
For example: It's hard to know a method exists or understand its use when you have to search through the code base to learn about it. Properly documenting it in the Technical Reference makes it easier for me to know what the flutter_fom_builder is (and is not capable of). -->
15+
16+
### Additional context
17+
<!-- Add any other context about your feedback here.
18+
For example: I am reading the docs directly from GitHub, so it's harder for me to find information on a particular method if it's not included in the documentation. -->
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: "\U0001F680 Feature request"
3+
about: Suggest new feature or request for this project
4+
labels: enhancement
5+
6+
---
7+
8+
## Environment
9+
10+
**Package name and version:** <!-- flutter_form_builder, form_builder_extra_field, form_builder_phone_field or form_builder_validators with version-->
11+
12+
## Description
13+
14+
**What you'd like to happen:**
15+
16+
**Alternatives you've considered:** <!-- if available, else delete -->
17+
18+
**Images:** <!-- if available, else delete -->

.github/ISSUE_TEMPLATE/question.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: "\U0001F914 Questions and Help"
3+
about: You have a quetion or need help using this packages
4+
labels: question
5+
6+
---
7+
8+
## Environment
9+
10+
**Package name:** <!-- flutter_form_builder, form_builder_extra_field or form_builder_validators -->
11+
12+
## Describe your question
13+
<!-- A clear and concise description of your question or help wanted.
14+
For example: How can I add a datetime field? -->

.github/workflows/base.yaml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: Base
2+
3+
on:
4+
push:
5+
branches: [main]
6+
tags:
7+
- '*'
8+
9+
pull_request:
10+
branches: [main]
11+
12+
workflow_dispatch:
13+
14+
jobs:
15+
build:
16+
runs-on: macos-latest
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
channel: [stable, beta]
21+
22+
steps:
23+
- uses: actions/checkout@v3
24+
25+
- name: Check broken links
26+
uses: JustinBeckwith/linkinator-action@v1
27+
with:
28+
paths: "**/*.md"
29+
30+
- name: Flutter action
31+
uses: subosito/flutter-action@v2
32+
with:
33+
channel: ${{ matrix.channel }}
34+
35+
- name: Install dependencies
36+
run: flutter pub get
37+
- name: Format code
38+
run: flutter format --dry-run --set-exit-if-changed .
39+
- name: Analyze static code
40+
run: flutter analyze
41+
- name: Run tests
42+
run: flutter test
43+
- name: Check publish warnings
44+
run: dart pub publish --dry-run
45+
- name: Build example
46+
run: |
47+
cd example
48+
flutter build appbundle --debug
49+
flutter build ios --debug --no-codesign
50+
51+
- name: Upload coverage to Codecov
52+
if: ${{ matrix.channel == 'stable' }}
53+
uses: codecov/codecov-action@v3
54+
with:
55+
files: coverage/lcov.info
56+
flags: unittests
57+
name: form_builder_validators
58+
59+
deployment:
60+
if: ${{ github.ref_type == 'tag' }}
61+
needs: build
62+
name: Deploy package
63+
runs-on: ubuntu-latest
64+
65+
steps:
66+
- name: Configure enviroment
67+
uses: actions/checkout@v3
68+
- name: Download flutter
69+
uses: subosito/flutter-action@v2
70+
with:
71+
channel: 'stable'
72+
- name: Setup pub credentials
73+
shell: bash
74+
env:
75+
PUB_DEV_PUBLISH_ACCESS_TOKEN: ${{ secrets.PUB_DEV_PUBLISH_ACCESS_TOKEN }}
76+
PUB_DEV_PUBLISH_REFRESH_TOKEN: ${{ secrets.PUB_DEV_PUBLISH_REFRESH_TOKEN }}
77+
run: |
78+
sh ./tool/pub_login.sh
79+
- name: Publish package
80+
run: dart pub publish -v -f

.gitignore

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
.fvm/
12+
13+
# IntelliJ related
14+
*.iml
15+
*.ipr
16+
*.iws
17+
.idea/
18+
19+
# The .vscode folder contains launch configuration and tasks you configure in
20+
# VS Code which you may wish to be included in version control, so this line
21+
# is commented out by default.
22+
#.vscode/
23+
24+
# Flutter/Dart/Pub related
25+
**/doc/api/
26+
.dart_tool/
27+
.flutter-plugins
28+
.flutter-plugins-dependencies
29+
.packages
30+
.pub-cache/
31+
.pub/
32+
build/
33+
34+
# Android related
35+
**/android/**/gradle-wrapper.jar
36+
**/android/.gradle
37+
**/android/captures/
38+
**/android/gradlew
39+
**/android/gradlew.bat
40+
**/android/local.properties
41+
**/android/**/GeneratedPluginRegistrant.java
42+
43+
# iOS/XCode related
44+
**/ios/**/*.mode1v3
45+
**/ios/**/*.mode2v3
46+
**/ios/**/*.moved-aside
47+
**/ios/**/*.pbxuser
48+
**/ios/**/*.perspectivev3
49+
**/ios/**/*sync/
50+
**/ios/**/.sconsign.dblite
51+
**/ios/**/.tags*
52+
**/ios/**/.vagrant/
53+
**/ios/**/DerivedData/
54+
**/ios/**/Icon?
55+
**/ios/**/Pods/
56+
**/ios/**/.symlinks/
57+
**/ios/**/profile
58+
**/ios/**/xcuserdata
59+
**/ios/.generated/
60+
**/ios/Flutter/App.framework
61+
**/ios/Flutter/Flutter.framework
62+
**/ios/Flutter/Flutter.podspec
63+
**/ios/Flutter/Generated.xcconfig
64+
**/ios/Flutter/app.flx
65+
**/ios/Flutter/app.zip
66+
**/ios/Flutter/flutter_assets/
67+
**/ios/Flutter/flutter_export_environment.sh
68+
**/ios/ServiceDefinitions.json
69+
**/ios/Runner/GeneratedPluginRegistrant.*
70+
71+
# Exceptions to above rules.
72+
!**/ios/**/default.mode1v3
73+
!**/ios/**/default.mode2v3
74+
!**/ios/**/default.pbxuser
75+
!**/ios/**/default.perspectivev3

.metadata

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: adc687823a831bbebe28bdccfac1a628ca621513
8+
channel: stable
9+
10+
project_type: package

CHANGELOG.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
## [8.1.1] - 26-Apr-2022
2+
* Fixed issue where email validator trims string before validation
3+
4+
## [8.1.0] - 13-Apr-2022
5+
* Added Romanian (ro) language support
6+
7+
## [8.0.0] - 10-Apr-2022
8+
* **BREAKING CHANGE**: Avoid passing context to validator functions.
9+
* Added Swahili (sw) language support
10+
11+
## [7.9.0] - 04-Apr-2022
12+
* Added Bangla (bn) language support
13+
14+
## [7.8.0] - 29-Mar-2022
15+
* Added Estonian (et) language support
16+
* Improved and corrected Arabic translations
17+
18+
## [7.7.0] - 15-Mar-2022
19+
* Added Catalan (ca) language support
20+
21+
## [7.6.1] - 19-Feb-2022
22+
* Fixed duplicate `en` locale translations. Fixes #969
23+
24+
## [7.6.0] - 18-Feb-2022
25+
* Added Ukrainian (uk) language support
26+
27+
## [7.5.0] - 17-Feb-2022
28+
* Added Lao (lo) language support
29+
* Added Dutch (nl) language support
30+
31+
## [7.4.0] - 31-Jan-2022
32+
* Added Russian (ru) language support
33+
34+
## [7.3.0] - 10-Jan-2022
35+
* Added support for Slovenian (sl)
36+
* Added Chinese language support - both traditional (zh_Hant) and simplified (zh_Hans)
37+
38+
## [7.2.0] - 06-Nov-2021
39+
* Added language support for Indonesian (id)
40+
41+
## [7.1.0] - 06-Nov-2021
42+
* Added language support for Korean (ko)
43+
44+
## [7.0.0] - 02-Sep-2021
45+
* New Package 🎉🎊 - Split from and no dependency on [flutter_form_builder](https://pub.dev/packages/flutter_form_builder)
46+
* Added Arabic and Persian/Farsi support
47+
* Use `intl_utils` package for localization
48+
* Minor type fixes
49+
* Documentation and example improvements
50+
51+
## [7.0.0-RC.1] - 02-Sep-2021
52+
* `maxLength` and `minLength` validators can now work with `Iterable` field values length
53+
54+
## [7.0.0-RC.0] - 01-Sep-2021
55+
* Added Arabic and Persian/Farsi support
56+
57+
## [7.0.0-beta.0] - 19-May-2021
58+
* Use `intl_utils` package for localization
59+
* Documentation and example improvements - added instructions for localization
60+
* Minor type fixes
61+
62+
## [7.0.0-alpha.2] - 17-May-2021
63+
* Improvements to package documentation and example
64+
65+
## [7.0.0-alpha.1] - 16-May-2021
66+
* Split into own package from `flutter_form_builder`

0 commit comments

Comments
 (0)