GitXplorerGitXplorer
j

flutter_font_icons

public
14 stars
3 forks
0 issues

Commits

List of commits on branch master.
Unverified
50b3a2964660dbecb4f4a97b3599857b4eb2c316

update version

jjosephcrowell committed a year ago
Unverified
1380ec5ee046dcf9cee83b7aa5d8207c0df206f5

Add name to copyright

jjosephcrowell committed a year ago
Unverified
6afc1ff153bccc412cefa744a8f2eeb74280bc78

version update

jjosephcrowell committed a year ago
Unverified
97607057ad8d2419a49855bc1fc3bcb2fbfa4b18

modernize all dart code and resolve all dart linter warnings

jjosephcrowell committed a year ago
Unverified
5a57798af0c3ec59a8260be5171048887119ff6a

update flutter packages

jjosephcrowell committed a year ago
Unverified
8c00bc447c358c9de005346cd802170462ca3b96

remove deprecated lints

jjosephcrowell committed a year ago

README

The README file for this repository.

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

Prop Description
selectedIcon This icon is displayed when IconToggle is selected
unselectedIcon This icon is displayed when IconToggle is not selected
selectedColor When IconToggle is selected, this icon color is displayed
unselectedColor When IconToggle is not selected, this icon color is displayed
selected Whether this IconToggle is selected.
size The size of the icon.
onChanged Called when the value of the IconToggle should change.
duration The duration of the transition from selected Icon to unselected Icon
reverseDuration The 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/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),