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

decorated_icon कवर
पैकेज विवरणv1.2.1

decorated_icon

एक हल्का, कुशल आइकन विजेट जो छाया प्रभावों की सूची का समर्थन करता है।

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
2.8 हज़ार
लाइक
80
Pub अंक
150

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

flutter pub add decorated_icon

पैकेज अवलोकन

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

DecoratedIcon एक हल्का और कुशल Flutter विजेट है जो कस्टमाइज़ेबल छाया प्रभाव के साथ आइकन दिखाने के लिए डिज़ाइन किया गया है। यह मानक Icon विजेट को बढ़ाता है ताकि विकासकर्ता एकाधिक छायाएं लगा सकें, जिससे दृश्य गहराई और डिज़ाइन लचीलापन बढ़ता है। प्रदर्शन ओवरहेड के बिना दृश्य रूप से आकर्षक UI तत्व बनाने के लिए उपयुक्त, यह सभी प्रमुख प्लेटफॉर्मों के लिए समर्थन करता है, जिनमें Android, iOS, Web, macOS, Windows और Linux शामिल हैं। पैकेज को pub add के माध्यम से आसानी से एकीकृत किया जा सकता है और साफ, कम कोड के साथ बनाया गया है। उपयोगी अनुप्रयोगों के लिए उपयुक्त जिनमें स्टाइल्ड आइकन और हल्के या भारी छायाएं चाहिए।

उपयोग

  • छाया के साथ स्टाइल्ड आइकन जोड़ें
  • दृश्य धनी UI घटक बनाना
  • एप्लिकेशन इंटरफेस में आइकन के दिखावट को बढ़ावा देना
  • कस्टम बटन आइकन डिज़ाइन करना
  • डैशबोर्ड में दृश्य प्राथमिकता में सुधार करना

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

  • कई छाया प्रभावों का समर्थन करता है
  • हल्का और कार्यक्षम
  • pub add के माध्यम से आसान एकीकरण
  • क्रॉस-प्लेटफॉर्म संगतता
  • मानक Icon विजेट का विस्तार करता है
  • कस्टमाइज़ किए गए छाया गुण

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

  • दृश्य आकर्षण की तलाश में UI डिज़ाइनर
  • आधुनिक एप्लिकेशन इंटरफ़ेस बनाने वाले डेवलपर्स
  • हल्के आइकन सुधार की आवश्यकता वाले प्रोजेक्ट
  • उच्च दृश्य डिज़ाइन मानकों वाले ऐप्स
  • प्रदर्शन और सरलता को प्राथमिकता देने वाली टीमें

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

  • केवल छाया प्रभावों तक सीमित
  • कोई निर्मित एनीमेशन समर्थन नहीं है
  • छाया कॉन्फ़िगरेशन के लिए हस्तक्षेप आवश्यक है
  • जटिल आइकन परिवर्तन के लिए उपयुक्त नहीं
  • सरल आइकन थीम के साथ सबसे अच्छा उपयोग किया जाता है

मूल README

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

pub package

Decorated Icon

The best-performing shadowed icon widget for Flutter!

DecoratedIcon is a super lightweight Icon that supports shadow decorations.

No complicated hacks or multiple widgets, just List<Shadow> shadows like a TextStyle!

This widget is able to achieve the most efficient implementation of an icon with a shadow because it is uses a single Text widget to display the icon and apply the shadows.

It even supports debugging and Semantics.

One thing to keep in mind when using multiple shadows is the order of stacking by Flutter: the first shadow in the list will be painted at the bottom. (Similar to how the Stack widget draws its children.)

Also note that due to Flutter's current limitation, achieving an "outer glow" effect is not currently possible. You can read more here.

Usage

To use this package, add decorated_icon as a dependency in your pubspec.yaml file.

Example

snapshot

Import the library.

import 'package:decorated_icon/decorated_icon.dart';

Then use DecoratedIcon as you would an Icon:

final decoratedIcons = Row(
  mainAxisAlignment: MainAxisAlignment.spaceEvenly,
  children: const [
    DecoratedIcon(
      Icons.android,
      color: Colors.purple,
      size: 60.0,
      shadows: [
        BoxShadow(
          blurRadius: 42.0,
          color: Colors.purpleAccent,
        ),
        BoxShadow(
          blurRadius: 12.0,
          color: Colors.white,
        ),
      ],
    ),
    DecoratedIcon(
      Icons.favorite,
      color: Colors.lightBlue.shade50,
      size: 60.0,
      shadows: [
        BoxShadow(
          blurRadius: 12.0,
          color: Colors.blue,
        ),
        BoxShadow(
          blurRadius: 12.0,
          color: Colors.green,
          offset: Offset(0, 6.0),
        ),
      ],
    ),
    DecoratedIcon(
      Icons.fingerprint,
      color: Colors.orange,
      size: 60.0,
      shadows: [
        BoxShadow(
          color: Colors.black,
          offset: Offset(3.0, 3.0),
        ),
      ],
    ),
  ],
);

श्रेणियाँ

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

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