Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
vasilich6107 committed Jul 9, 2023
1 parent 3759830 commit a8dde8c
Show file tree
Hide file tree
Showing 11 changed files with 81 additions and 9 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/donate_action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Donation comment on issue

on:
issues:
types: [ closed ]

jobs:
comment:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Comment on issue
uses: actions/github-script@v5
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const issue_number = context.issue.number;
const issue = await github.rest.issues.get({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issue_number
});
const issue_creator = issue.data.user.login;
const comment_body = `
Hi @${issue_creator}!
Your issue has been closed. If we were helpful don't forget to star the repo.
Please check our reactive_forms widget section https://github.com/artflutter/reactive_forms_generator
We would appreciate sponsorship subscription or one time donation
https://github.com/sponsors/artflutter
`;
github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issue_number,
body: comment_body
});
18 changes: 18 additions & 0 deletions packages/reactive_month_picker_dialog/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,59 @@
## [2.0.0]

* reactive_forms update

## [1.0.0]

* reactive_forms update

## [0.8.0]

* package version bump

## [0.7.2]

* fix for https://github.com/artflutter/reactive_forms_widgets/issues/96

## [0.7.1]

* package version bump

## [0.7.0]

* fix for https://github.com/artflutter/reactive_forms_widgets/issues/92

## [0.6.0]

* package version bump

## [0.5.0]

* package version bump

## [0.4.0]

* package version bump

## [0.3.0]

* package version bump

## [0.2.0]

* package version bump

## [0.1.0]

* package version bump

## [0.0.3]

* readme update

## [0.0.2]

* showErrors api

## [0.0.1]

* initial release
2 changes: 1 addition & 1 deletion packages/reactive_month_picker_dialog/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ environment:
dependencies:
flutter:
sdk: flutter
reactive_forms: 14.1.0
reactive_forms: 16.0.1
reactive_month_picker_dialog:
path: ../

Expand Down
6 changes: 3 additions & 3 deletions packages/reactive_month_picker_dialog/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: reactive_month_picker_dialog
description: Wrapper around month_picker_dialog to use with reactive_forms.
version: 1.0.0
version: 2.0.0
repository: https://github.com/artflutter/reactive_forms_widgets/tree/master/packages/reactive_month_picker_dialog
issue_tracker: https://github.com/artflutter/reactive_forms_widgets/issues

environment:
sdk: ">=2.18.2 <3.0.0"
sdk: ">=3.0.0 <4.0.0"
flutter: ">=3.0.0"

dependencies:
flutter:
sdk: flutter
month_picker_dialog: ^2.0.2
reactive_forms: ^16.0.0
reactive_forms: ^16.0.1
intl: ^0.18.0

dev_dependencies:
Expand Down
4 changes: 4 additions & 0 deletions packages/reactive_phone_form_field/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [2.0.0]

* reactive_forms update

## [1.0.1]

* reactive_forms update
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import 'package:reactive_forms/reactive_forms.dart';
import 'package:reactive_phone_form_field/validators/validation_message.dart';

class RequiredPhoneValidator extends Validator<dynamic> {
const RequiredPhoneValidator();

@override
Map<String, dynamic>? validate(AbstractControl<dynamic> control) {
final error = <String, dynamic>{PhoneValidationMessage.required: true};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import 'package:reactive_forms/reactive_forms.dart';
import 'package:reactive_phone_form_field/validators/validation_message.dart';

class ValidFixedLinePhoneValidator extends Validator<dynamic> {
const ValidFixedLinePhoneValidator();

@override
Map<String, dynamic>? validate(AbstractControl<dynamic> control) {
final error = <String, dynamic>{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import 'package:reactive_forms/reactive_forms.dart';
import 'package:reactive_phone_form_field/validators/validation_message.dart';

class ValidMobilePhoneValidator extends Validator<dynamic> {
const ValidMobilePhoneValidator();

@override
Map<String, dynamic>? validate(AbstractControl<dynamic> control) {
final error = <String, dynamic>{PhoneValidationMessage.validMobile: true};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import 'package:reactive_phone_form_field/validators/validation_message.dart';

/// Validator that requires the control have a non-empty value.
class ValidPhoneValidator extends Validator<dynamic> {
const ValidPhoneValidator();

@override
Map<String, dynamic>? validate(AbstractControl<dynamic> control) {
final error = <String, dynamic>{PhoneValidationMessage.valid: true};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,19 @@ import 'package:reactive_phone_form_field/validators/validator/valid_validator.d
/// Provides a set of built-in validators that can be used by form controls.
class PhoneValidators {
/// Gets a validator that requires the control have a non-empty value.
static Validator<dynamic> get required => RequiredPhoneValidator();
static Validator<dynamic> get required => const RequiredPhoneValidator();

/// Gets a validator that requires the control's value pass an phone
/// validation test.
static Validator<dynamic> get valid => ValidPhoneValidator();
static Validator<dynamic> get valid => const ValidPhoneValidator();

/// Gets a validator that requires the control's value pass a fixed line phone
/// validation test.
static Validator<dynamic> get validFixedLine =>
ValidFixedLinePhoneValidator();
const ValidFixedLinePhoneValidator();

/// Gets a validator that requires the control's value pass a mobile phone
/// validation test.
static Validator<dynamic> get validMobile => ValidMobilePhoneValidator();
static Validator<dynamic> get validMobile =>
const ValidMobilePhoneValidator();
}
2 changes: 1 addition & 1 deletion packages/reactive_phone_form_field/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: reactive_phone_form_field
description: Wrapper around phone_form_field to use with reactive_forms
version: 1.0.1
version: 2.0.0
repository: https://github.com/artflutter/reactive_forms_widgets/tree/master/packages/reactive_phone_form_field
issue_tracker: https://github.com/artflutter/reactive_forms_widgets/issues

Expand Down

0 comments on commit a8dde8c

Please sign in to comment.