Giter VIP home page Giter VIP logo

simple_icons's Introduction

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

simple_icons's People

Contributors

actions-user avatar dependabot-preview[bot] avatar dependabot[bot] avatar ericcornelissen avatar github-actions[bot] avatar jlnrrg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

simple_icons's Issues

Icons not displayed correctly in version 6.11.0

Hi,
simple_icons library worked very well for me. I am using version 6.1.0, and the next version to upgrade would be 6.11.0 as describe in the pub.dev available versions
However, when I update to version 6.11.0, all icons are mixed up.
Example of how it looks on version 6.1.0:
v1

And this is how the icons look on version 6.11.0:
iconsV11

I tried cleaning the cache and everything but it doesnt work.

Does anyone else have the same problem with latest version?

Update Simple Icons Version

From the next major release of simple-icons (v11, releasing on May 26, 2024), We will begin removing third-party extensions from our README list that are not up to date with at least the previous major release.
For example, when v11 is released, we will remove any extensions that don't support v10.0.0 or higher.

How do I keep my package up to date?

There are two methods that prove most popular among other maintainers. It is up to you which you implement.

Using @latest from a CDN

Projects that use the CDN version of the project (jsDelivr/unpkg) can keep up to date simply by changing the version number in their code to @latest. That way - you're always using the most up to date version of the icon package.

Running a weekly CRON

Many of our third party contributors make use of GitHub actions, and a weekly CRON job to query that the version number of the main package has changed, and then update and build their own package. A great example of this is the DrawIO package by mondeja. The main package is released consistently on a Sunday - so we recommend running your CRON job on a Monday or Tuesday.


When you've got your extension running one of the above methods, drop us a Pull Request to update your version number on the README.

If you're in need of any support in implementing one of the above - please feel free to start a discussion or ask us on Discord.

Remove unnecessary dependency on Material

Currently, when adding this package to a project that doesn't use the Material Design there is a warning:

package:simple_icons has uses-material-design: true set but the primary pubspec contains uses-material-design: false. If the application needs material icons, then uses-material-design must be set to true.

It has no other effects besides being annoying, but I would appreciate no unnecessary issues in my debug console.

Edit: Also, there is no reason to import the whole package:flutter/material.dart in icon_data.dart - package:flutter/widgets.dart is sufficient.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.