GithubHelp home page GithubHelp logo

pepsighan / mdi-dart Goto Github PK

View Code? Open in Web Editor NEW
35.0 3.0 11.0 2.46 MB

5,400+ Material Design Icons for Flutter from the Community

Home Page: https://https://materialdesignicons.com/

License: MIT License

Dart 99.48% Objective-C 0.01% JavaScript 0.21% Shell 0.14% Kotlin 0.08% Swift 0.08%
flutter dart material-icons icons material

mdi-dart's Introduction

Material Design Icons for Flutter

pub version likes sdk version platform license

Material Design Icons generated using @mdi/util provided by materialdesignicons.com.

Installation

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

dependencies:
  mdi: ^5.0.0-nullsafety.0

Usage

import 'package:mdi/mdi.dart';

class AccessPointButton extends StatelessWidget {
  Widget build(BuildContext context) {
    return IconButton(
      icon: Icon(Mdi.accessPoint),
     );
  }
}

Naming

The icon names provided via Mdi are camel-cased variants of the original name.

Exceptions:
  1. null -> nullIcon
  2. switch -> switchIcon
  3. sync -> syncIcon
  4. factory -> factoryIcon

Contributing

If you want to contribute to this project, you may easily create issues and send PRs. Please take note that your code contributions will be applicable under MIT license unless specified otherwise.

mdi-dart's People

Contributors

drenther avatar pepsighan avatar siyrissoul avatar tnc1997 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mdi-dart's Issues

Ability to add icon using theme data?

Is there a way to add the icon VIA Icon Data?

IconData(62159, fontFamily: 'MDI')

This would be really helpful so I can dynamically add the icon using a integer and string.

add static all method

As it looks to me the package is auto generated based on the MDI font.
(Or that is how i've done it with the simple icons package)

Please consider adding a static list, where one can get all the icons at one.
Example:

static const List<MdiIconData> all = [
    Mdi.abTesting,
  ];

Every user of the library could implement this themself, but with so many icons this would take a lot of time.
Under the premise that the mdi.dart is autogenerated, this might be just one line of code for you ๐Ÿ™ .

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.