ng_fontawesome 5.7.2+2

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 64

Font Awesome for AngularDart #

Basic Usage #

This package provides Font Awesome as an AngularDart component. To use icons inside a component, do the following:

  • Import the package: import 'package:ng_fontawesome/cng_fontawesome.dart';
  • Add the directives to your component: directives: const [FA_DIRECTIVES]
  • Add icons to your template, e.g. <fa name="flag"></fa>

See more usage information in the demo application (source code).

Versioning #

The version number of this package follows the version number of Font Awesome itself. This makes it easy to see which version of Font Awesome is provided by this package and pin your own packages to specific versions of Font Awesome (i.e. a version that adds a specific glyph that your package needs).

Maintenance #

This section is for the developer[s] of this package only.

To upgrade Font Awesome, download and unzip the upstream release. Change into the unzipped directory. Then run these commands:

$ cp css/all.* ../lib/src/css
$ cp webfonts/* ../lib/fonts
$ cd ..
$ sed --in-place 's:url[(]"\.\./web:url("packages/ng_fontawesome/:g' lib/src/css/all.css
$ sed --in-place 's:url[(]\.\./web:url(packages/ng_fontawesome/:g' lib/src/css/all.min.css

To test it out, switch to the ng_fontawesome_demo project and run:

$ pub get
$ webdev serve

To publish:

  1. Put new version in pubspec.yaml
  2. Update CHANGELOG.md
  3. Run dartdoc to make sure it can run successfully
  4. Create and push a git tag
  5. Publish: pub publish

define hyperion gray

The package's version number follows the upstream Font Awesome version number. The build number (after the plus sign) is increased when the package is modified without updating the upstream.

5.7.2+1 #

  • Upgrade to Dart 2.x
  • Upgrade to Angular 5.x
  • Upgrade to Font Awesome 5.7.2

4.7.0+6 #

  • Improve Pub score

4.7.0+5 #

  • Renamed from ng2_fontawesome to ng_fontawesome
  • Upgraded to Angular 4.0.0

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  ng_fontawesome: ^5.7.2+2

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:ng_fontawesome/ng_fontawesome.dart';
  
Version Uploaded Documentation Archive
5.7.2+2 Mar 8, 2019 Go to the documentation of ng_fontawesome 5.7.2+2 Download ng_fontawesome 5.7.2+2 archive
5.7.2+1 Mar 1, 2019 Go to the documentation of ng_fontawesome 5.7.2+1 Download ng_fontawesome 5.7.2+1 archive
4.7.0+8 Mar 7, 2018 Go to the documentation of ng_fontawesome 4.7.0+8 Download ng_fontawesome 4.7.0+8 archive
4.7.0+7 Mar 2, 2018 Go to the documentation of ng_fontawesome 4.7.0+7 Download ng_fontawesome 4.7.0+7 archive
4.7.0+6 Feb 23, 2018 Go to the documentation of ng_fontawesome 4.7.0+6 Download ng_fontawesome 4.7.0+6 archive
4.7.0+5 Feb 23, 2018 Go to the documentation of ng_fontawesome 4.7.0+5 Download ng_fontawesome 4.7.0+5 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
33
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
64
Learn more about scoring.

We analyzed this package on Mar 8, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.2.0
  • pana: 0.12.14

Platforms

Detected platforms: web

Primary library: package:ng_fontawesome/ng_fontawesome.dart with components: html, js.

Health suggestions

Fix lib/src/stack.dart. (-0.50 points)

Analysis of lib/src/stack.dart reported 1 hint:

line 3 col 8: Unused import: 'icon.dart'.

Format lib/src/directives.dart.

Run dartfmt to format lib/src/directives.dart.

Format lib/src/icon.dart.

Run dartfmt to format lib/src/icon.dart.

Format lib/src/list.dart.

Run dartfmt to format lib/src/list.dart.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and ng_fontawesome.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.2.0 <3.0.0
angular ^5.2.0 5.2.0
Transitive dependencies
analyzer 0.34.3 0.35.3
angular_ast 0.5.8
angular_compiler 0.4.2
args 1.5.1
async 2.0.8
build 1.1.0 1.1.1
build_config 0.3.1+4
built_collection 4.1.0
built_value 6.3.2
charcode 1.1.2
code_builder 3.2.0
collection 1.14.11
convert 2.1.1
crypto 2.0.6
csslib 0.14.6
dart_style 1.2.3
fixnum 0.10.9
front_end 0.1.9+1 0.1.13
glob 1.1.7
html 0.13.4+1
intl 0.15.7
js 0.6.1+1
json_annotation 2.0.0
kernel 0.3.9+1 0.3.13
logging 0.11.3+2
matcher 0.12.4
meta 1.1.7
package_config 1.0.5
path 1.6.2
plugin 0.2.0+3
pub_semver 1.4.2
pubspec_parse 0.1.4
quiver 2.0.1
source_gen 0.9.4+1
source_span 1.5.5
stack_trace 1.9.3
string_scanner 1.0.4
term_glyph 1.1.0
typed_data 1.1.6
utf 0.9.0+5
watcher 0.9.7+10
yaml 2.1.15
Dev dependencies
build_runner ^1.0.0
build_test ^0.10.2
build_web_compilers ^0.4.0