FontAwesome5_Free added

master
lmy 5 years ago
parent 7f18c1058a
commit b6f590a57a

@ -15,6 +15,7 @@ Customizable Icons for Flutter,Inspired by [react-native-vector-icons](https://g
* [`EvilIcons`](http://evil-icons.io) by Alexander Madyankin & Roman Shamin (v1.10.1, **70** icons)
* [`Feather`](http://feathericons.com) by Cole Bemis & Contributors (v4.7.0, **266** icons)
* [`FontAwesome`](http://fortawesome.github.io/Font-Awesome/icons/) by Dave Gandy (v4.7.0, **675** icons)
* [`FontAwesome 5`](https://fontawesome.com) by Fonticons, Inc. (v5.7.0, **1500** (free))
* [`Foundation`](http://zurb.com/playground/foundation-icon-fonts-3) by ZURB, Inc. (v3.0, **283** icons)
* [`Ionicons`](https://ionicons.com/) by Ben Sperry (v4.2.4, **696** icons)
* [`MaterialIcons`](https://www.google.com/design/icons/) by Google, Inc. (v3.0.1, **932** icons)
@ -44,5 +45,8 @@ Icon(Ionicons.getIconData("ios-search"));
Icon(AntDesign.getIconData("stepforward"));
Icon(FontAwesome.getIconData("glass"));
Icon(MaterialIcons.getIconData("ac-unit"));
Icon(FontAwesome5.getIconData("address-book"));
Icon(FontAwesome5.getIconData("address-book",weight: IconWeight.Solid));
Icon(FontAwesome5.getIconData("500px", weight: IconWeight.Brand));
```
### Special thanks to react native vector ICONS library and its authors

@ -15,6 +15,7 @@
* [`EvilIcons`](http://evil-icons.io) by Alexander Madyankin & Roman Shamin (v1.10.1, **70** icons)
* [`Feather`](http://feathericons.com) by Cole Bemis & Contributors (v4.7.0, **266** icons)
* [`FontAwesome`](http://fortawesome.github.io/Font-Awesome/icons/) by Dave Gandy (v4.7.0, **675** icons)
* [`FontAwesome 5`](https://fontawesome.com) by Fonticons, Inc. (v5.7.0, **1500** (free))
* [`Foundation`](http://zurb.com/playground/foundation-icon-fonts-3) by ZURB, Inc. (v3.0, **283** icons)
* [`Ionicons`](https://ionicons.com/) by Ben Sperry (v4.2.4, **696** icons)
* [`MaterialIcons`](https://www.google.com/design/icons/) by Google, Inc. (v3.0.1, **932** icons)
@ -44,5 +45,8 @@ Icon(Ionicons.getIconData("ios-search"));
Icon(AntDesign.getIconData("stepforward"));
Icon(FontAwesome.getIconData("glass"));
Icon(MaterialIcons.getIconData("ac-unit"));
Icon(FontAwesome5.getIconData("address-book"));
Icon(FontAwesome5.getIconData("address-book",weight: IconWeight.Solid));
Icon(FontAwesome5.getIconData("500px", weight: IconWeight.Brand));
```
### 特别感谢react-native-vector-icons插件包及其开发者们

@ -45,7 +45,6 @@ class MyHomePage extends StatefulWidget {
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
// This method is rerun every time setState is called, for instance as done
@ -80,6 +79,10 @@ class _MyHomePageState extends State<MyHomePage> {
// horizontal).
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Icon(FontAwesome5.getIconData("address-book")),
Icon(FontAwesome5.getIconData("address-book",
weight: IconWeight.Solid)),
Icon(FontAwesome5.getIconData("500px", weight: IconWeight.Brand)),
Icon(Ionicons.getIconData("ios-search")),
Icon(AntDesign.getIconData("stepforward")),
Icon(FontAwesome.getIconData("glass")),

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -1,33 +1,48 @@
import 'package:flutter/material.dart';
enum IconWeight { Regular, Solid, Brand }
class FlutterIconData extends IconData {
const FlutterIconData(int codePoint,String fontFamily)
: super(
codePoint,
fontFamily:fontFamily,
fontPackage: "flutter_icons"
);
const FlutterIconData(int codePoint, String fontFamily)
: super(codePoint, fontFamily: fontFamily, fontPackage: "flutter_icons");
const FlutterIconData.ionicons(int codePoint) : this(codePoint, "Ionicons");
const FlutterIconData.ionicons(int codePoint):this(codePoint,"Ionicons");
const FlutterIconData.antDesign(int codePoint) : this(codePoint, "AntDesign");
const FlutterIconData.antDesign(int codePoint):this(codePoint,"AntDesign");
const FlutterIconData.fontAwesome(int codePoint)
: this(codePoint, "FontAwesome");
const FlutterIconData.fontAwesome(int codePoint):this(codePoint,"FontAwesome");
const FlutterIconData.fontAwesome5(int codePoint,
{IconWeight weight = IconWeight.Regular})
: this(
codePoint,
weight == IconWeight.Brand
? "FontAwesome5_Brands"
: weight == IconWeight.Solid
? "FontAwesome5_Solid"
: "FontAwesome5",
);
const FlutterIconData.entypo(int codePoint):this(codePoint, "Entypo");
const FlutterIconData.entypo(int codePoint) : this(codePoint, "Entypo");
const FlutterIconData.evilIcons(int codePoint):this(codePoint, "EvilIcons");
const FlutterIconData.evilIcons(int codePoint) : this(codePoint, "EvilIcons");
const FlutterIconData.feather(int codePoint):this(codePoint, "Feather");
const FlutterIconData.feather(int codePoint) : this(codePoint, "Feather");
const FlutterIconData.foundation(int codePoint):this(codePoint, "Foundation");
const FlutterIconData.foundation(int codePoint)
: this(codePoint, "Foundation");
const FlutterIconData.materialCommunityIcons(int codePoint):this(codePoint, "MaterialCommunityIcons");
const FlutterIconData.materialCommunityIcons(int codePoint)
: this(codePoint, "MaterialCommunityIcons");
const FlutterIconData.materialIcons(int codePoint):this(codePoint, "MaterialIcons");
const FlutterIconData.materialIcons(int codePoint)
: this(codePoint, "MaterialIcons");
const FlutterIconData.octicons(int codePoint):this(codePoint, "Octicons");
const FlutterIconData.octicons(int codePoint) : this(codePoint, "Octicons");
const FlutterIconData.simpleLineIcons(int codePoint):this(codePoint, "SimpleLineIcons");
const FlutterIconData.simpleLineIcons(int codePoint)
: this(codePoint, "SimpleLineIcons");
const FlutterIconData.zocial(int codePoint):this(codePoint, "Zocial");
const FlutterIconData.zocial(int codePoint) : this(codePoint, "Zocial");
}

@ -12,3 +12,5 @@ export 'octicons.dart';
export 'simple_line_icons.dart';
export 'zocial.dart';
export 'foundation.dart';
export 'font_awesome_5.dart';
export 'flutter_icon_data.dart' show IconWeight;

File diff suppressed because it is too large Load Diff

@ -1,6 +1,6 @@
name: flutter_icons
description: Customizable Icons for Flutteryou can use with over 3K+ icons in your flutter project
version: 0.1.5
version: 0.2.0
author: flutter-studio<2534290808@qq.com>
homepage: https://github.com/flutter-studio/flutter-icons.git
@ -57,6 +57,16 @@ flutter:
- family: Zocial
fonts:
- asset: fonts/Zocial.ttf
- family: FontAwesome5
fonts:
- asset: fonts/FontAwesome5_Regular.ttf
- family: FontAwesome5_Brands
fonts:
- asset: fonts/FontAwesome5_Brands.ttf
- family: FontAwesome5_Solid
fonts:
- asset: fonts/FontAwesome5_Solid.ttf
# To add assets to your package, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg

Loading…
Cancel
Save