Commit cbfd62a0 authored by Brian Egan's avatar Brian Egan

Upgrade to font awesome 5.1.0

parent 06cc595a
## 7.1.0
* Upgrade to font awesome icons 5.1.0
## 7.0.0 ## 7.0.0
* Renames: * Renames:
......
This diff is collapsed.
This diff is collapsed.
...@@ -2,7 +2,7 @@ name: font_awesome_flutter ...@@ -2,7 +2,7 @@ name: font_awesome_flutter
description: The Font Awesome Icon pack available as Flutter Icons description: The Font Awesome Icon pack available as Flutter Icons
author: Brian Egan <brian@brianegan.com> author: Brian Egan <brian@brianegan.com>
homepage: https://github.com/brianegan/font_awesome_flutter homepage: https://github.com/brianegan/font_awesome_flutter
version: 7.0.0 version: 7.1.0
dependencies: dependencies:
flutter: flutter:
......
...@@ -17,7 +17,7 @@ void main(List<String> arguments) { ...@@ -17,7 +17,7 @@ void main(List<String> arguments) {
for (String iconName in icons.keys) { for (String iconName in icons.keys) {
var icon = icons[iconName]; var icon = icons[iconName];
List<String> styles = icon['styles']; List<String> styles = (icon['styles'] as List).cast<String>();
if (styles.length > 1) { if (styles.length > 1) {
if (styles.contains('regular')) { if (styles.contains('regular')) {
......
...@@ -18,7 +18,7 @@ void main(List<String> arguments) { ...@@ -18,7 +18,7 @@ void main(List<String> arguments) {
for (String iconName in icons.keys) { for (String iconName in icons.keys) {
var icon = icons[iconName]; var icon = icons[iconName];
var unicode = icon['unicode']; var unicode = icon['unicode'];
List<String> styles = icon['styles']; List<String> styles = (icon['styles'] as List).cast<String>();
if (styles.length > 1) { if (styles.length > 1) {
if (styles.contains('regular')) { if (styles.contains('regular')) {
......
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