flutter_icons 0.1.4

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 #

getIconDataReturns the IconData object,eg : IconData iconData = AntDesign.getIconData("stepforward")
hasIconDataChecks 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';


Special thanks to react native vector ICONS library and its authors #

0.1.4 #

  • Add hasIconData method

0.1.3 #

  • Foundation added

0.1.0 #

  • This library contains several icon libraries, including the well-known ant-design icon library, material icon library, and so on


example #

A new Flutter application.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  flutter_icons: ^0.1.4

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:flutter_icons/flutter_icons.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jul 22, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.4.0
  • pana: 0.12.19
  • Flutter: 1.7.8+hotfix.3


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health issues and suggestions

Document public APIs. (-1 points)

76 out of 76 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Fix lib/ionicons.dart. (-0.50 points)

Analysis of lib/ionicons.dart reported 1 hint:

line 2 col 8: Unused import: 'package:flutter/material.dart'.

Format lib/ant_design.dart.

Run flutter format to format lib/ant_design.dart.

Format lib/entypo.dart.

Run flutter format to format lib/entypo.dart.

Fix additional 10 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/evil_icons.dart (Run flutter format to format lib/evil_icons.dart.)
  • lib/feather.dart (Run flutter format to format lib/feather.dart.)
  • lib/flutter_icon_data.dart (Run flutter format to format lib/flutter_icon_data.dart.)
  • lib/font_awesome.dart (Run flutter format to format lib/font_awesome.dart.)
  • lib/foundation.dart (Run flutter format to format lib/foundation.dart.)
  • lib/material_community_icons.dart (Run flutter format to format lib/material_community_icons.dart.)
  • lib/material_icons.dart (Run flutter format to format lib/material_icons.dart.)
  • lib/octicons.dart (Run flutter format to format lib/octicons.dart.)
  • lib/simple_line_icons.dart (Run flutter format to format lib/simple_line_icons.dart.)
  • lib/zocial.dart (Run flutter format to format lib/zocial.dart.)


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11
meta 1.1.6 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies