Skip to content

Commit

Permalink
Adjust EasyForm package for publication
Browse files Browse the repository at this point in the history
  • Loading branch information
hjJunior committed Jun 21, 2020
1 parent 678058c commit a226f45
Show file tree
Hide file tree
Showing 14 changed files with 53 additions and 132 deletions.
10 changes: 8 additions & 2 deletions easy_form/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [0.0.1] - TODO: Add release date.
## [0.0.1-rc] - Initial Release

* TODO: Describe initial release.
- Extensible and easy API to create new fields
- Dynamic field value control from any child
- Initial values and reset form option
- Live update: Rebuild your widgets in realtime when any change happens
- Extensible API to create reusable async and sync validations rule for field
- Dynamic error setter
- Easy access to any field from any child
2 changes: 1 addition & 1 deletion easy_form/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# easy_form
# Flutter EasyForm

A new Flutter package project.

Expand Down
2 changes: 1 addition & 1 deletion easy_form/example/lib/examples/dynamic_control.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:easy_form/easy_form.dart';
import 'package:flutter_easy_form/flutter_easy_form.dart';
import 'package:flutter/material.dart';

class DynamicControl extends StatelessWidget {
Expand Down
2 changes: 1 addition & 1 deletion easy_form/example/lib/examples/live_update.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:easy_form/easy_form.dart';
import 'package:flutter_easy_form/flutter_easy_form.dart';
import 'package:flutter/material.dart';

class LiveUpdate extends StatelessWidget {
Expand Down
2 changes: 1 addition & 1 deletion easy_form/example/lib/examples/simple_form.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:easy_form/easy_form.dart';
import 'package:flutter_easy_form/flutter_easy_form.dart';
import 'package:flutter/material.dart';

class SimpleForm extends StatelessWidget {
Expand Down
2 changes: 1 addition & 1 deletion easy_form/example/lib/examples/validations.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:easy_form/easy_form.dart';
import 'package:flutter_easy_form/flutter_easy_form.dart';
import 'package:flutter/material.dart';

class UsingValidations extends StatelessWidget {
Expand Down
2 changes: 1 addition & 1 deletion easy_form/example/lib/examples/with_initial_values.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:easy_form/easy_form.dart';
import 'package:flutter_easy_form/flutter_easy_form.dart';
import 'package:flutter/material.dart';

class WithInitialValues extends StatelessWidget {
Expand Down
84 changes: 21 additions & 63 deletions easy_form/example/pubspec.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
archive:
dependency: transitive
description:
name: archive
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.13"
args:
dependency: transitive
description:
name: args
url: "https://pub.dartlang.org"
source: hosted
version: "1.6.0"
async:
dependency: transitive
description:
Expand All @@ -36,58 +22,51 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.3"
collection:
dependency: transitive
description:
name: collection
url: "https://pub.dartlang.org"
source: hosted
version: "1.14.12"
convert:
clock:
dependency: transitive
description:
name: convert
name: clock
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.1"
crypto:
version: "1.0.1"
collection:
dependency: transitive
description:
name: crypto
name: collection
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.4"
version: "1.14.12"
cupertino_icons:
dependency: "direct main"
description:
name: cupertino_icons
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.3"
easy_form:
dependency: "direct main"
fake_async:
dependency: transitive
description:
path: ".."
relative: true
source: path
version: "0.0.1"
name: fake_async
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
flutter:
dependency: "direct main"
description: flutter
source: sdk
version: "0.0.0"
flutter_easy_form:
dependency: "direct main"
description:
path: ".."
relative: true
source: path
version: "0.0.1-rc"
flutter_test:
dependency: "direct dev"
description: flutter
source: sdk
version: "0.0.0"
image:
dependency: transitive
description:
name: image
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.12"
matcher:
dependency: transitive
description:
Expand All @@ -108,21 +87,7 @@ packages:
name: path
url: "https://pub.dartlang.org"
source: hosted
version: "1.6.4"
petitparser:
dependency: transitive
description:
name: petitparser
url: "https://pub.dartlang.org"
source: hosted
version: "2.4.0"
quiver:
dependency: transitive
description:
name: quiver
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.3"
version: "1.7.0"
sky_engine:
dependency: transitive
description: flutter
Expand Down Expand Up @@ -169,7 +134,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.15"
version: "0.2.16"
typed_data:
dependency: transitive
description:
Expand All @@ -184,12 +149,5 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.8"
xml:
dependency: transitive
description:
name: xml
url: "https://pub.dartlang.org"
source: hosted
version: "3.6.1"
sdks:
dart: ">=2.7.0 <3.0.0"
2 changes: 1 addition & 1 deletion easy_form/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ environment:
dependencies:
flutter:
sdk: flutter
easy_form:
flutter_easy_form:
path: ../


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
library easy_form;
library flutter_easy_form;

export 'src/easy_form.dart';
export 'src/easy_form_context.dart';
Expand Down
2 changes: 1 addition & 1 deletion easy_form/lib/src/easy_form_context.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:flutter/material.dart';

import '../easy_form.dart';
import '../flutter_easy_form.dart';

extension EasyFormExtension on BuildContext {
EasyFormState get easyForm => this.findAncestorStateOfType<EasyFormState>();
Expand Down
64 changes: 11 additions & 53 deletions easy_form/pubspec.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
archive:
dependency: transitive
description:
name: archive
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.13"
args:
dependency: transitive
description:
name: args
url: "https://pub.dartlang.org"
source: hosted
version: "1.6.0"
async:
dependency: transitive
description:
Expand All @@ -36,27 +22,27 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.3"
collection:
clock:
dependency: transitive
description:
name: collection
name: clock
url: "https://pub.dartlang.org"
source: hosted
version: "1.14.12"
convert:
version: "1.0.1"
collection:
dependency: transitive
description:
name: convert
name: collection
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.1"
crypto:
version: "1.14.12"
fake_async:
dependency: transitive
description:
name: crypto
name: fake_async
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.4"
version: "1.1.0"
flutter:
dependency: "direct main"
description: flutter
Expand All @@ -67,13 +53,6 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
image:
dependency: transitive
description:
name: image
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.12"
matcher:
dependency: transitive
description:
Expand All @@ -94,21 +73,7 @@ packages:
name: path
url: "https://pub.dartlang.org"
source: hosted
version: "1.6.4"
petitparser:
dependency: transitive
description:
name: petitparser
url: "https://pub.dartlang.org"
source: hosted
version: "2.4.0"
quiver:
dependency: transitive
description:
name: quiver
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.3"
version: "1.7.0"
sky_engine:
dependency: transitive
description: flutter
Expand Down Expand Up @@ -155,7 +120,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.15"
version: "0.2.16"
typed_data:
dependency: transitive
description:
Expand All @@ -170,12 +135,5 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.8"
xml:
dependency: transitive
description:
name: xml
url: "https://pub.dartlang.org"
source: hosted
version: "3.6.1"
sdks:
dart: ">=2.7.0 <3.0.0"
7 changes: 3 additions & 4 deletions easy_form/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: easy_form
name: flutter_easy_form
description: A easy way to build forms with Flutter.
version: 0.0.1
author:
homepage:
version: 0.0.1-rc
repository: https://github.com/hjJunior/flutter-easy-form

environment:
sdk: ">=2.7.0 <3.0.0"
Expand Down
2 changes: 1 addition & 1 deletion easy_form/test/easy_form_test.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:flutter_test/flutter_test.dart';

import 'package:easy_form/easy_form.dart';
import 'package:flutter_easy_form/flutter_easy_form.dart';

void main() {
test('adds one to input values', () {
Expand Down

0 comments on commit a226f45

Please sign in to comment.