material_design_icons_flutter 3.4.4995

material_design_icons_flutter #

The Material Design Icons Icon pack available as set of Flutter Icons.

Based on Material Design Icons 4.9.95.

👍 Like us on!

Installation #

In the dependencies: section of your pubspec.yaml, add the following line:

  material_design_icons_flutter: 3.4.4995

Usage #

import 'package:material_design_icons_flutter/material_design_icons_flutter.dart';

class MyWidget extends StatelessWidget {
  Widget build(BuildContext context) {
    return new IconButton(
      // Use the MdiIcons class for the IconData
      icon: new Icon(MdiIcons.sword),
      onPressed: () { print('Using the sword'); }

Or, if you want to access the icon by a string name, you can use fromString method to create one.

This is not recomended because to make fromString work we need a map for all icon names. Using this method will not get the benifits of tree-shaking.

import 'package:material_design_icons_flutter/material_design_icons_flutter.dart';

class MyWidget extends StatelessWidget {
  Widget build(BuildContext context) {
    return new IconButton(
      // Use the string name to access icons.
      icon: new Icon(MdiIcons.fromString('sword')),
      onPressed: () { print('Using the sword'); }

Name Conversion #

Some icons' name is reversed keyword in Dart (and most other languages), so the names have been changed.

  • null -> nullIcon
  • switch -> switchIcon
  • sync -> syncIcon
  • factory -> factoryIcon

3.4.4995 #

Update icons.

3.4.4895 #

Update icons.

3.4.4795 #

Update icons.

3.4.4595 #

Added a getIconsName static method.

3.3.4595 #

Added ability to recognise dash style icon name.

3.2.3895 #

Added auto-update script which is wriiten in JavaScript.

3.2.3595 #

Added a fromString static method to access icon.

3.1.3493 #

Supports access icon by [] operator

3.0.3039 #

Since the Material Design Icons does not follow the semver. We decide not to respect its version.

You can find the correspounding version number as patch part.

2.3.50 #

From this version, this package will respect Material Design Icons' version since it might introduce breaking changes between minor versions.

1.0.0 #

  • First released


example #

A new Flutter project.

Getting Started #

For help getting started with Flutter, view our online documentation.

Use this package as a library

1. Depend on it

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

  material_design_icons_flutter: ^3.4.4995

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:material_design_icons_flutter/material_design_icons_flutter.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 Feb 24, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.5
  • Flutter: 1.12.13+hotfix.7

Health issues and suggestions

Document public APIs. (-1 points)

5004 out of 5004 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.

Format lib/material_design_icons_flutter.dart.

Run flutter format to format lib/material_design_icons_flutter.dart.

Maintenance issues and suggestions

example/lib/main.dart too large. (-197.96 points)

Try to keep the file size under 128k.

The package description is too short. (-4 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.19.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8