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 f78293c6ff
add IconToggle example
5 years ago
example add IconToggle example 5 years ago
fonts FontAwesome5_Free added 5 years ago
lib perfect IconToggle 5 years ago
test clear test.dart 6 years ago
.gitignore Update .gitignore 6 years ago
.metadata initial 6 years ago
CHANGELOG.md Update CHANGELOG.md 5 years ago
LICENSE initial 6 years ago
README.md FontAwesome5_Free added 5 years ago
README_zh-CN.md FontAwesome5_Free added 5 years ago
flutter_icons.iml add example 6 years ago
package.json docs(package.json): update package.json 6 years ago
pubspec.lock initial 6 years ago
pubspec.yaml FontAwesome5_Free added 5 years ago

README.md

English | 简体中文

flutter_icons

pub package

Customizable Icons for Flutter,Inspired by react-native-vector-icons

Bundled Icon Sets

Browse all.

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"));
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