Unverified Commit 4fd74f52 authored by Brian Egan's avatar Brian Egan Committed by GitHub

Merge pull request #85 from fluttercommunity/michaelspiss-icondata-access

Fixes #84 by exporting icon_data.dart
parents 0bcf63ef 77c52ad4
## 8.8.1
* Fix icon_data.dart not being accessible
## 8.8.0
* Upgrade to Font Awesome Icons 5.13
......
......@@ -3,6 +3,7 @@ library font_awesome_flutter;
import 'package:flutter/widgets.dart';
import 'package:font_awesome_flutter/src/icon_data.dart';
export 'package:font_awesome_flutter/src/fa_icon.dart';
export 'package:font_awesome_flutter/src/icon_data.dart';
// THIS FILE IS AUTOMATICALLY GENERATED!
......
......@@ -38,13 +38,13 @@ class FaDuotoneIcon extends StatelessWidget {
final String semanticLabel;
const FaDuotoneIcon(
this.icon, {
Key key,
this.size,
this.primaryColor,
this.secondaryColor,
this.semanticLabel,
}) : assert(icon != null),
this.icon, {
Key key,
this.size,
this.primaryColor,
this.secondaryColor,
this.semanticLabel,
}) : assert(icon != null),
super(key: key);
@override
......
......@@ -2,6 +2,9 @@ library font_awesome_flutter;
import 'package:flutter/widgets.dart';
/// [IconData] for a font awesome brand icon from a code point
///
/// Code points can be obtained from fontawesome.com
class IconDataBrands extends IconData {
const IconDataBrands(int codePoint)
: super(
......@@ -11,6 +14,9 @@ class IconDataBrands extends IconData {
);
}
/// [IconData] for a font awesome solid icon from a code point
///
/// Code points can be obtained from fontawesome.com
class IconDataSolid extends IconData {
const IconDataSolid(int codePoint)
: super(
......@@ -20,6 +26,9 @@ class IconDataSolid extends IconData {
);
}
/// [IconData] for a font awesome regular icon from a code point
///
/// Code points can be obtained from fontawesome.com
class IconDataRegular extends IconData {
const IconDataRegular(int codePoint)
: super(
......@@ -29,6 +38,10 @@ class IconDataRegular extends IconData {
);
}
/// [IconData] for a font awesome light icon from a code point. Only works if
/// light icons (pro) have been installed.
///
/// Code points can be obtained from fontawesome.com
class IconDataLight extends IconData {
const IconDataLight(int codePoint)
: super(
......@@ -38,6 +51,10 @@ class IconDataLight extends IconData {
);
}
/// [IconData] for a font awesome duotone icon from a code point. Only works if
/// duotone icons (pro) have been installed.
///
/// Code points can be obtained from fontawesome.com
class IconDataDuotone extends IconData {
const IconDataDuotone(int codePoint)
: super(
......
......@@ -5,7 +5,7 @@ authors:
- Flutter Community <community@flutter.zone>
- Brian Egan <brian@brianegan.com>
homepage: https://github.com/fluttercommunity/font_awesome_flutter
version: 8.8.0
version: 8.8.1
environment:
sdk: ">=2.0.0-dev.28.0 <3.0.0"
......
......@@ -32,7 +32,7 @@ void main(List<String> arguments) {
);
}
if(styles.contains('duotone')) {
if (styles.contains('duotone')) {
hasDuotone = true;
}
......@@ -59,10 +59,12 @@ void main(List<String> arguments) {
"import 'package:flutter/widgets.dart';",
"import 'package:font_awesome_flutter/src/icon_data.dart';",
"export 'package:font_awesome_flutter/src/fa_icon.dart';",
"export 'package:font_awesome_flutter/src/icon_data.dart';",
];
if(hasDuotone) {
generatedOutput.add("export 'package:font_awesome_flutter/src/fa_duotone_icon.dart';");
if (hasDuotone) {
generatedOutput
.add("export 'package:font_awesome_flutter/src/fa_duotone_icon.dart';");
}
generatedOutput.addAll([
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment