Skip to content

Latest commit

 

History

History
71 lines (50 loc) · 2 KB

README.md

File metadata and controls

71 lines (50 loc) · 2 KB

Simple Icons

Simple Icons: Flutter

A Flutter package for Simple Icons, which provides over 1500 Free SVG icons for popular brands.
See them all on one page at SimpleIcons.org.
Contributions, corrections & requests can be made on GitHub.

Naming

Naming conventions have been changed for better readability and consistancy with all other flutter icon packs.

Additionally:

  • special characters ➔ written in words
  • names starting with a number ➔ the letter 'n' placed in front
  • dart reserved words ➔ 'icon' placed in the back

To convert from the catalog simply follow this method

.NET ➔ dotNet

Apple Pay ➔ applepay

1Password ➔ n1password

abstract ➔ abstracticon

SimpleIconColors

As of version 10.1.2 the SimpleIconColors exists, which holds the brands hex color.
Some brands did not receive a color. This is a known error in the build script.
If you find any icon which you like to have color support for, feel free to open an issue.

Installation

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

dependencies:
  simple_icons: <latest_version>

Usage

import "package:simple_icons/simple_icons.dart";

class MyAwesomeWidget extends StatelessWidget {
  Widget build(BuildContext context) {
    return IconButton(
      icon: Icon(SimpleIcons.github, color: SimpleIconColors.github),
      onPressed: () {
          print("awesome platform to share code and ideas");
      }
    );
  }
}

Example

View the flutter app in the example directory

Screenshots


website