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 46af2e5453
v1.0.0
5 years ago
example update Example 5 years ago
fonts add weatherIcons 5 years ago
lib Add comments 5 years ago
test Optimization of the API 5 years ago
.gitignore Update .gitignore 6 years ago
.metadata initial 6 years ago
CHANGELOG.md v0.3.1 5 years ago
LICENSE Update LICENSE 5 years ago
README.md update README.md 5 years ago
README_zh-CN.md update README.md 5 years ago
a.dart Optimization of the API 5 years ago
flutter_icons.iml add example 6 years ago
package.json docs(package.json): update package.json 6 years ago
pubspec.lock update Example 5 years ago
pubspec.yaml v1.0.0 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.

Widget

IconToggle

Prop Description
selectedIconData Icon is displayed when value is true
unselectedIconData Icon is displayed when value is false
activeColor When value is true, the icon color is displayed
inactiveColor When value is false, the icon color is displayed
value Whether this IconToggle is selected.
onChanged Called when the value of the IconToggle should change.
duration The duration of the transition from selected Icon to unselected Icon
reverseDuration he duration of the transition from unselected Icon to selected Icon
transitionBuilder Transition animation function between the selected Icon and the unselected Icon

Example

// Import package
import 'package:flutter_icons/flutter_icons.dart';
import 'package:flutter/material.dart';

Icon(AntDesign.stepforward),
Icon(Ionicons.ios_search),
Icon(FontAwesome.glass),
Icon(MaterialIcons.ac_unit),
Icon(FontAwesome5.address_book),
Icon(FontAwesome5Solid.address_book),
Icon(FontAwesome5Brands.$500px)

Special thanks to react native vector ICONS library and its authors