-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
130 changed files
with
3,927 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
## Description | ||
|
||
*Replace this paragraph with a description of what this PR is doing. If you're modifying existing behavior, describe the existing behavior, how this PR is changing it, and what motivated the change.* | ||
|
||
|
||
## Checklist | ||
|
||
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (`[x]`). This will ensure a smooth and quick review process. | ||
|
||
- [ ] I read the [Code Style Guide] and followed the process outlined there for submitting PRs. | ||
- [ ] All existing and new tests are passing. | ||
- [ ] I updated/added relevant documentation (doc comments with `///`). | ||
- [ ] The analyzer (`flutter analyze`) does not report any problems on my PR. | ||
- [ ] I updated `pubspec.yaml`, `build.properties`, and `ios/Podfile` with an appropriate new version according to the [pub versioning philosophy]. | ||
- [ ] I updated `CHANGELOG.md` to add a description of the change. | ||
- [ ] I am authorized to release this code under the MIT License and agree to do so | ||
|
||
## UI Change | ||
|
||
Does your PR affect any UI screens? | ||
|
||
- [ ] Yes, the relevant screens are included below. | ||
- [ ] No, there are no UI impacts with this PR. | ||
|
||
|
||
<!-- Links --> | ||
[Code Style Guide]: https://github.com/peiffer-innovations/documentation/blob/main/CODE_STYLE.md | ||
[pub versioning philosophy]: https://www.dartlang.org/tools/pub/versioning |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Flutter Pages Deployer | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
# paths: | ||
# - .github/workflows/pages.yaml | ||
# - pubspec.yaml | ||
# - lib/** | ||
# - example/** | ||
|
||
jobs: | ||
build_number: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
buildnumber: ${{ steps.buildnumber.outputs.build_number }} | ||
steps: | ||
- name: Generate Build Number | ||
id: buildnumber | ||
uses: einaregilsson/build-number@v3 | ||
with: | ||
token: ${{secrets.GITHUB_TOKEN}} | ||
- name: Build Number | ||
run: echo "Build Number - $BUILD_NUMBER" | ||
|
||
publish: | ||
needs: build_number | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: subosito/flutter-action@v1 | ||
with: | ||
channel: "stable" | ||
|
||
- name: Validate | ||
uses: peiffer-innovations/[email protected] | ||
with: | ||
flutter_package: true | ||
|
||
- name: Web | ||
uses: peiffer-innovations/[email protected] | ||
with: | ||
build_mode: release | ||
build_number: ${{ needs.build_number.outputs.buildnumber }} | ||
deploy_path: web | ||
repo_url: https://github.com/${{ github.repository }} | ||
source_path: example | ||
token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Flutter Publisher | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Validate | ||
uses: peiffer-innovations/[email protected] | ||
with: | ||
flutter_package: true | ||
|
||
- name: Checkout Schemas | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: peiffer-innovations/flutter_json_schemas | ||
token: ${{ secrets.REPO_TOKEN }} | ||
fetch-depth: 0 | ||
ref: gh-pages | ||
path: schemas | ||
|
||
- name: Update Schemas | ||
run: | | ||
git config --global user.name "action" | ||
git config --global user.email "[email protected]" | ||
git config --global url."https://action:${{secrets.REPO_TOKEN}}@github.com/".insteadOf https://github.com/ | ||
rm -rf schemas/json_dynamic_widget_plugin_font_awesome | ||
mkdir schemas/json_dynamic_widget_plugin_font_awesome | ||
cp output/* schemas/json_dynamic_widget_plugin_font_awesome | ||
cd schemas | ||
git add . | ||
git commit --allow-empty -m "json_dynamic_widget_plugin_font_awesome: schema update" | ||
git push origin HEAD:gh-pages | ||
cd .. | ||
- name: Publish | ||
uses: peiffer-innovations/[email protected] | ||
with: | ||
credentials: ${{ secrets.CREDENTIAL_JSON }} | ||
|
||
- uses: CDDelta/[email protected] | ||
with: | ||
token: ${{ secrets.REPO_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Flutter Pull Request Checker | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: subosito/flutter-action@v1 | ||
with: | ||
channel: "stable" | ||
|
||
- name: Validate | ||
uses: peiffer-innovations/[email protected] | ||
with: | ||
flutter_package: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# Miscellaneous | ||
*.class | ||
*.log | ||
*.pyc | ||
*.swp | ||
.DS_Store | ||
.atom/ | ||
.buildlog/ | ||
.history | ||
.svn/ | ||
pubspec.lock | ||
coverage/ | ||
coverage_badge.svg | ||
test/.test_coverage.dart | ||
output/ | ||
|
||
# IntelliJ related | ||
*.iml | ||
*.ipr | ||
*.iws | ||
.idea/ | ||
|
||
# The .vscode folder contains launch configuration and tasks you configure in | ||
# VS Code which you may wish to be included in version control, so this line | ||
# is commented out by default. | ||
#.vscode/ | ||
|
||
# Flutter/Dart/Pub related | ||
**/doc/api/ | ||
.dart_tool/ | ||
.flutter-plugins | ||
.flutter-plugins-dependencies | ||
.packages | ||
.pub-cache/ | ||
.pub/ | ||
build/ | ||
|
||
# Android related | ||
**/android/**/gradle-wrapper.jar | ||
**/android/.gradle | ||
**/android/captures/ | ||
**/android/gradlew | ||
**/android/gradlew.bat | ||
**/android/local.properties | ||
**/android/**/GeneratedPluginRegistrant.java | ||
|
||
# iOS/XCode related | ||
**/ios/**/*.mode1v3 | ||
**/ios/**/*.mode2v3 | ||
**/ios/**/*.moved-aside | ||
**/ios/**/*.pbxuser | ||
**/ios/**/*.perspectivev3 | ||
**/ios/**/*sync/ | ||
**/ios/**/.sconsign.dblite | ||
**/ios/**/.tags* | ||
**/ios/**/.vagrant/ | ||
**/ios/**/DerivedData/ | ||
**/ios/**/Icon? | ||
**/ios/**/Pods/ | ||
**/ios/**/.symlinks/ | ||
**/ios/**/profile | ||
**/ios/**/xcuserdata | ||
**/ios/.generated/ | ||
**/ios/Flutter/App.framework | ||
**/ios/Flutter/Flutter.framework | ||
**/ios/Flutter/Flutter.podspec | ||
**/ios/Flutter/Generated.xcconfig | ||
**/ios/Flutter/app.flx | ||
**/ios/Flutter/app.zip | ||
**/ios/Flutter/flutter_assets/ | ||
**/ios/Flutter/flutter_export_environment.sh | ||
**/ios/ServiceDefinitions.json | ||
**/ios/Runner/GeneratedPluginRegistrant.* | ||
|
||
# Exceptions to above rules. | ||
!**/ios/**/default.mode1v3 | ||
!**/ios/**/default.mode2v3 | ||
!**/ios/**/default.pbxuser | ||
!**/ios/**/default.perspectivev3 | ||
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
repos: | ||
- repo: https://github.com/peiffer-innovations/flutter-precommit-hook | ||
rev: v1.0.3 | ||
hooks: | ||
- id: flutter-precommit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
## [1.0.0] - November 30th, 2021 | ||
|
||
* Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* Jeff Peiffer <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2021 Peiffer Innovations | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,43 @@ | ||
# json_dynamic_widget_plugin_font_awesome | ||
# json_dynamic_widget_plugin_font_awesome | ||
|
||
## Table of Contents | ||
|
||
* [Live Example](#live-example) | ||
* [Introduction](#introduction) | ||
* [Using the Plugin](#using-the-plugin) | ||
|
||
|
||
## Live Example | ||
|
||
* [Web](https://peiffer-innovations.github.io/json_dynamic_widget_plugin_font_awesome/web/index.html#/) | ||
|
||
|
||
## Introduction | ||
|
||
Plugin to the [JSON Dynamic Widget](https://peiffer-innovations.github.io/json_dynamic_widget) to provide Font Awesome support utilizing the [font_awesome_flutter](https://pub.dev/packages/font_awesome_flutter) package. | ||
|
||
|
||
## Using the Plugin | ||
|
||
```dart | ||
import 'package:json_dynamic_widget/json_dynamic_widget.dart'; | ||
import 'package:json_dynamic_widget_plugin_font_awesome/json_dynamic_widget_plugin_font_awesome.dart'; | ||
void main() { | ||
// Ensure Flutter's binding is complete | ||
WidgetsFlutterBinding.ensureInitialized(); | ||
// ... | ||
// Get an instance of the registry | ||
var registry = JsonWidgetRegistry.instance; | ||
// Bind the plugin to the registry. This is necessary for the registry to | ||
// find the widget provided by the plugin | ||
JsonFontAwesomePlugin.bind(registry); | ||
// ... | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
linter: | ||
rules: | ||
- always_declare_return_types | ||
- always_require_non_null_named_parameters | ||
- annotate_overrides | ||
- avoid_empty_else | ||
- avoid_equals_and_hash_code_on_mutable_classes | ||
- avoid_escaping_inner_quotes | ||
- avoid_init_to_null | ||
- avoid_null_checks_in_equality_operators | ||
- avoid_print | ||
- avoid_relative_lib_imports | ||
- avoid_return_types_on_setters | ||
- avoid_shadowing_type_parameters | ||
- avoid_slow_async_io | ||
- avoid_types_as_parameter_names | ||
- avoid_unnecessary_containers | ||
- avoid_unused_constructor_parameters | ||
- camel_case_extensions | ||
- camel_case_types | ||
- cancel_subscriptions | ||
- close_sinks | ||
- curly_braces_in_flow_control_structures | ||
- directives_ordering | ||
- empty_catches | ||
- empty_constructor_bodies | ||
- implementation_imports | ||
- library_names | ||
- library_prefixes | ||
- no_duplicate_case_values | ||
- null_closures | ||
- omit_local_variable_types | ||
- package_names | ||
- prefer_adjacent_string_concatenation | ||
- prefer_collection_literals | ||
- prefer_conditional_assignment | ||
- prefer_contains | ||
- prefer_equal_for_default_values | ||
- prefer_final_fields | ||
- prefer_for_elements_to_map_fromIterable | ||
- prefer_generic_function_type_aliases | ||
- prefer_if_null_operators | ||
- prefer_interpolation_to_compose_strings | ||
- prefer_is_empty | ||
- prefer_is_not_empty | ||
- prefer_iterable_whereType | ||
- prefer_single_quotes | ||
- prefer_spread_collections | ||
- prefer_typing_uninitialized_variables | ||
- prefer_void_to_null | ||
- recursive_getters | ||
- slash_for_doc_comments | ||
- sort_child_properties_last | ||
- sort_constructors_first | ||
- sort_pub_dependencies | ||
- sort_unnamed_constructors_first | ||
- type_init_formals | ||
- unawaited_futures | ||
- unnecessary_const | ||
- unnecessary_getters_setters | ||
- unnecessary_new | ||
- unnecessary_null_in_if_null_operators | ||
- unnecessary_this | ||
- unrelated_type_equality_checks | ||
- use_full_hex_values_for_flutter_colors | ||
- use_function_type_syntax_for_parameters | ||
- use_rethrow_when_possible | ||
- valid_regexps | ||
- void_checks |
Oops, something went wrong.