You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lmy
7f18c1058a
|
5 years ago | |
---|---|---|
example | 6 years ago | |
fonts | 5 years ago | |
lib | 5 years ago | |
test | 6 years ago | |
.gitignore | 6 years ago | |
.metadata | 6 years ago | |
CHANGELOG.md | 5 years ago | |
LICENSE | 6 years ago | |
README.md | 5 years ago | |
README_zh-CN.md | 5 years ago | |
flutter_icons.iml | 6 years ago | |
package.json | 6 years ago | |
pubspec.lock | 6 years ago | |
pubspec.yaml | 5 years ago |
README.md
English | 简体中文
flutter_icons
Customizable Icons for Flutter,Inspired by react-native-vector-icons
Bundled Icon Sets
AntDesign
by AntFinance (297 icons)Entypo
by Daniel Bruce (411 icons)EvilIcons
by Alexander Madyankin & Roman Shamin (v1.10.1, 70 icons)Feather
by Cole Bemis & Contributors (v4.7.0, 266 icons)FontAwesome
by Dave Gandy (v4.7.0, 675 icons)Foundation
by ZURB, Inc. (v3.0, 283 icons)Ionicons
by Ben Sperry (v4.2.4, 696 icons)MaterialIcons
by Google, Inc. (v3.0.1, 932 icons)MaterialCommunityIcons
by MaterialDesignIcons.com (v4.0.96, 4416 icons)Octicons
by Github, Inc. (v8.0.0, 177 icons)Zocial
by Sam Collins (v1.0, 100 icons)SimpleLineIcons
by Sabbir & Contributors (v2.4.1, 189 icons)
Usage
To use this plugin, add flutter_icons
as a dependency in your pubspec.yaml file.
Static Methods
Prop | Description |
---|---|
getIconData |
Returns the IconData object,eg : IconData iconData = AntDesign.getIconData("stepforward") |
hasIconData |
Checks if the name is valid in current icon set.eg: bool isNameValid = AntDesign.hasIconData("stepforward") |
Example
// Import package
import 'package:flutter_icons/flutter_icons.dart';
import 'package:flutter/material.dart';
Icon(Ionicons.getIconData("ios-search"));
Icon(AntDesign.getIconData("stepforward"));
Icon(FontAwesome.getIconData("glass"));
Icon(MaterialIcons.getIconData("ac-unit"));