flutter_font_icons 2.2.7

SDKflutter
Platformandroidioswindowslinuxmacosweb

Vector Font Icons for Flutter, including all fonts from react-native-vector-icons and WeatherIcons.

flutter_font_icons

English | 简体中文

pub package

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

Notice

  1. v2.0.0 has major Api changes, please be careful when upgrading
  2. icon names that begin with a number are preceded by a $prefix
  3. icons named with a dart language keyword have the _ suffix added

Bundled Icon Sets

Browse all.

Usage

To use this plugin, add flutter_font_icons as a dependency in your pubspec.yaml file.

Widget

IconToggle

PropDescription
selectedIconThis icon is displayed when IconToggle is selected
unselectedIconThis icon is displayed when IconToggle is not selected
selectedColorWhen IconToggle is selected, this icon color is displayed
unselectedColorWhen IconToggle is not selected, this icon color is displayed
selectedWhether this IconToggle is selected.
sizeThe size of the icon.
onChangedCalled when the value of the IconToggle should change.
durationThe duration of the transition from selected Icon to unselected Icon
reverseDurationThe duration of the transition from unselected Icon to selected Icon
transitionBuilderTransition animation function between the selected Icon and the unselected Icon

Example

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

// Include icons with
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),