पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

पैकेज विवरणv7.0.7296

material_design_icons_flutter

फ्लटर के लिए समुदाय द्वारा डिज़ाइन किए गए मैटेरियल डिज़ाइन आइकन

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
65 हज़ार
लाइक
693
Pub अंक
50

पैकेज इंस्टॉल करें

flutter pub add material_design_icons_flutter

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

एक फ्लटर पैकेज जो समुदाय द्वारा बनाए गए मैटेरियल डिज़ाइन आइकन प्रदान करता है, जिसका उपयोग फ्लटर एप्लिकेशन में किया जा सकता है। यह गूगल के मैटेरियल डिज़ाइन दिशानिर्देशों के अनुसार एक व्यापक सेट आइकन प्रदान करता है, जो प्लेटफॉर्म के बीच सुसंगतता और दृश्य आकर्षण सुनिश्चित करता है। आइकन प्रदर्शन के लिए अनुकूलित हैं और सभी प्रमुख फ्लटर प्लेटफॉर्म, जैसे कि एंड्रॉइड, आईओएस, वेब, मैकओएस, विंडोज और लिनक्स का समर्थन करते हैं। विकासकर्ता आसानी से अपने UI में आइकन को सरल विजेट सिंटैक्स के उपयोग से एकीकृत और कस्टमाइज़ कर सकते हैं।

उपयोग

  • मोबाइल और वेब ऐप में मैटेरियल डिज़ाइन के अनुरूप आइकन को एकीकृत करना
  • स्थिर और स्केलेबल वेक्टर आइकन के साथ यूआई में सुधार करना
  • एकीकृत आइकनोग्राफी के साथ क्रॉस-प्लेटफॉर्म एप्लिकेशन बनाना
  • Flutter विजेट्स में आइकन रंग और आकार को कस्टमाइज़ करना
  • बटन, नेविगेशन बार और ऐप टूलबार में आइकन का उपयोग करना

मुख्य विशेषताएँ

  • Material Design आइकन की व्यापक पुस्तकालय
  • सभी प्रमुख Flutter प्लेटफॉर्म के लिए समर्थन
  • pub.dev के माध्यम से आसान एकीकरण
  • उच्च रिज़ॉल्यूशन के साथ स्केलेबल वेक्टर आइकन
  • निर्मित आइकन थीम और कस्टमाइजेशन विकल्प

इनके लिए उपयुक्त

  • Material Design-आधारित ऐप्स बनाने वाले Flutter विकासकर्मी
  • प्लेटफॉर्म के बीच स्थिर आइकन सेट की आवश्यकता वाली टीमें
  • हल्के, प्रदर्शन-प्रभावी आइकन समाधान की आवश्यकता वाले परियोजनाएँ
  • UI/UX सुसंगतता पर ध्यान केंद्रित विकासक
  • बहुत अधिक ऑपरेटिंग प्रणालियों का लक्ष्य बनाने वाले ऐप्स

विचार योग्य बातें

  • नए आइकन जोड़ने के लिए हाथ से अपडेट करने की आवश्यकता है
  • समुदाय द्वारा रखरखाव किए गए आइकन सेट तक सीमित
  • कस्टम आइकन थीम के लिए अतिरिक्त कॉन्फ़िगरेशन की आवश्यकता हो सकती है
  • गूगल द्वारा आधिकारिक रूप से बनाए नहीं गए
  • अपडेट के लिए बाहरी GitHub भंडार पर निर्भर है

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

material_design_icons_flutter

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

Based on Material Design Icons 7.4.47. See a web demo build with this package.

👍 Like us on pub.dev!

Installation

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

  material_design_icons_flutter: 7.0.7447

WARNING: MDI's version is based on their icons quantity, which does not strictly respect semver guide. They do try their best to keep icons in same name between minor releases but name changing may still appear. To not break your application, using a fix version in your pubspec.yaml is highly recommended.

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.

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'); }
     );
  }
}

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

On flutter 1.22 and above, using fromString method will also cause a compile error This application cannot tree shake icons fonts, which can be bypass by building with --no-tree-shake-icons.

Name Conversion

Some icons' names are reserved keywords in Dart (and most other languages), so they have been changed.

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

श्रेणियाँ

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट