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

fancy_shimmer_image कवर
पैकेज विवरणv2.0.3

fancy_shimmer_image

एक छोटा पैकेज जिसके उपयोग से चित्रों का आसानी से उपयोग किया जा सकता है, जो स्वचालित रूप से कैश किए जाते हैं और लोड होने के दौरान सुंदर ऑन-द-फ्लाई (लेकिन कॉन्फ़िगर किया जा सकता है) शिमर प्रभाव होता है

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
3.3 हज़ार
लाइक
219
Pub अंक
140

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

flutter pub add fancy_shimmer_image

पैकेज अवलोकन

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

एक फ्लटर पैकेज जो एक बिल्ट-इन शिमर प्रभाव के साथ छवियों को लोड करने को सरल बनाता है, उपयोगकर्ता अनुभव में सुधार करता है। यह छवि कैशिंग को स्वचालित रूप से संभालता है और URL और संसाधनों सहित विभिन्न छवि स्रोतों का समर्थन करता है। शिमर प्रभाव को कस्टमाइज़ किया जा सकता है, जिससे विकासकर्ता रंग, अवधि और एनीमेशन शैली को समायोजित कर सकते हैं। छवियों के असिंक्रोनस लोडिंग वाले सूचियों और ग्रिड में संवेदनात्मक प्रदर्शन में सुधार करने के लिए आदर्श है।

उपयोग

  • स्क्रॉल करने योग्य सूचियों में छवियाँ लोड करें
  • ग्रिड लेआउट में प्लेसहोल्डर प्रभाव दिखाएं
  • चित्र लोडिंग के दौरान UI प्रतिक्रिया में सुधार करना
  • चित्र-भारी इंटरफेस में सुचारू संक्रमण बनाना
  • नेटवर्क-निर्भर ऐप्स में अनुभवजन्य प्रदर्शन में सुधार करना

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

  • स्वचालित छवि कैशिंग
  • निर्धारित झलक एनीमेशन
  • नेटवर्क और संपत्ति छवियों का समर्थन करता है
  • कस्टमाइज़ किए गए शीमर रंग और अवधि
  • विफल लोड के लिए निर्मित फॉलबैक
  • हल्का और आसान एकीकरण

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

  • त्वरित छवि स्थानाभिमुखीकरण के लिए विकासकर्ता
  • उच्च आवृत्ति छवि लोडिंग वाले ऐप्स
  • विजुअल पॉलिश पर ध्यान केंद्रित UI डिजाइनर
  • छवि लोडिंग के लिए न्यूनतम बॉयलरप्लेट की आवश्यकता वाले प्रोजेक्ट
  • असिंक्रोनस ऑपरेशन के दौरान उपयोगकर्ता अनुभव पर ध्यान केंद्रित करने वाली टीमें

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

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

मूल README

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

Buy Me A Coffee

Introduction

Package created for the purpose of uploading images from the internet, giving the possibility of showing a beautiful Shimmer animation while the images are not loading. And it is still possible to create a widget to be shown in case the image upload fails for some reason.

This package is basically a union of two known packages:

Basic Usage

You can use the package on the fly by simple passing a URL of an image to the FancyShimmerImage widget.

FancyShimmerImage(  
  imageUrl: 'https://images.unsplash.com/photo-1465572089651-8fde36c892dd?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&w=1000&q=80',  
),

That will produce a image that's is cacheable by default and that has a default (grey) Shimmer animation. Similar to result below:

enter image description here

More Advanced Usage

If you don't like the default widget behavior, you can set the background colors of the image, the color of the shimmer base effect, and the color of the highlighted effect.

FancyShimmerImage(  
  imageUrl: 'https://static.businessinsider.sg/2018/12/12/5c1c90f8e04d6243c7019cf6.png',  
  shimmerBaseColor: randomColor(),  
  shimmerHighlightColor: randomColor(),  
  shimmerBackColor: randomColor(),  
)

By randomizing the colors you can have a result similar to this:

enter image description here

Other thing you can do is to configure the direction of the Shimmer and it's speed. In the above example i configured it to have top to bottom direction and 300 milliseconds of speed.

enter image description here

One last step you can configure is to configure the widget that will appear in case the image upload fails for some reason. In this case just pass the desired widget in the errorWidget parameter. If no value is passed, a default error widget will be used.

FancyShimmerImage(  
  imageUrl: 'https://static.businessinsider.sg/2018/12/12/5c1c90f8e04d6243c7019cf6.png',  
  errorWidget: Image.network('https://i0.wp.com/www.dobitaobyte.com.br/wp-content/uploads/2016/02/no_image.png?ssl=1'),
)

enter image description here

श्रेणियाँ

निर्भरताएँ

निर्भरता सूची 2 आइटम

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

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

अभी कोई डेटा उपलब्ध नहीं है।