यह लोडिंग स्थिति को दर्शाने के लिए झलक प्रभाव बनाता है, इसलिए प्रगति बार या सामान्य लोडर के बजाय बेहतर डिज़ाइन और उपयोगकर्ता अनुभव के लिए झलक का उपयोग करें।
सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
Flutter Shimmer एक पैकेज है जो उपयोगकर्ता इंटरफ़ेस में लोडिंग स्थिति को दर्शाने के लिए एक चिकनी, एनिमेटेड शिमर प्रभाव प्रदान करता है। पारंपरिक प्रगति बार या स्थिर लोडर के बजाय, यह एक दृश्यात्मक रूप से आकर्षक ग्रेडिएंट एनिमेशन प्रदान करता है जो सामग्री के लोड होने के दिखने की नकल करता है, आधुनिक, गतिशील भाव के साथ उपयोगकर्ता अनुभव को बढ़ाता है। सूचियों, कार्ड या छवियों में स्थानाभिस्थापन के लिए आदर्श, यह डेटा लाने के दौरान दृश्य निरंतरता बनाए रखने में मदद करता है। यह पैकेज सभी प्रमुख प्लेटफॉर्म जैसे Android, iOS, Web, macOS, Windows और Linux को समर्थन देता है।
उपयोग
सूचियों में लोडिंग स्थानापन्न
एनिमेटेड कार्ड स्थान भरने वाले
छवि लोडिंग सूचकांक
UI में सामग्री कंकाल
सीमित प्रदर्शन में सुधार
मुख्य विशेषताएँ
स्मूथ ग्रेडिएंट शीमर एनिमेशन
कस्टमाइज़ करने योग्य शीमर दिशा
कई प्लेटफॉर्म का समर्थन करता है
मौजूदा विजेट्स के साथ आसान एकीकरण
कॉन्फ़िगरेबल शिमर रंग और तीव्रता
इनके लिए उपयुक्त
आधुनिक लोडिंग प्रभाव चाहने वाले UI डिजाइनर
एपी यूएक्स में सुधार करने वाले विकासकर्ता
डायनामिक कंटेंट लोडिंग वाले ऐप्स
इंटरैक्टिव स्क्रीन के प्रोटोटाइप बनाना
आकर्षक ऑनबोर्डिंग अनुभव बनाना
विचार योग्य बातें
वास्तविक डेटा लोडिंग तर्क के लिए उपयुक्त नहीं
अगर अधिक उपयोग किया जाए, तो प्रदर्शन पर प्रभाव पड़ सकता है
एप्लिकेशन थीम के साथ मेल खाने के लिए सावधानीपूर्वक स्टाइलिंग की आवश्यकता होती है
मूल एनिमेशन के आगे सीमित कस्टमाइज़ेशन
उचित समय और प्रसंग में सबसे अच्छा उपयोग किया जाता है
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
flutter_shimmer
flutter_shimmer package for creating Shimmer effect that indicate a loading status, so instead of using ProgressBar or usual loader use Shimmer for a better design and user interface.
Show some :heart: and star the repo to support the project
colors: [Color(0xFF651fff), Color(0xFF834bff), Color(0xFF4615b2)],
), |
// Step 1: set hasCustomColors property to true
hasCustomColors: true,
// Step 2: give 3 colors to colors property
colors: [
// Dark color
Color(0xFF618833),
// light color
Color(0xFFa2cf6e),
// Medium color
Color(0xFF8bc34a)
],
hasBottomLines: true,
// isDarkMode: true,
),|
Get Started
#ColorModeThere are three color mode in the flutter_shimmer package
1. LightMode2. DarkMode3. PurplishMode4. CustomColorMode (New)
# Optional Options:
[isRectBox]: when it is true then it will show Rectancle shape else(false) show circle shape by defult its value false
[isDarkMode]: when it is true then it will use black bg color otherwise it use transparent color by defult its value false
[isPurplishMode]: when it is true then it will use little bit purplish bg color otherwise it use transparent color by defult its value false
[isDisabledAvatar]: when it is true then it will hide circle avatar by default it'sfalse
[isDisabledButton]: Note:- this property only used in ListTileShimmer. when it'strue then it will hide right side button shape shimmer from ListTileShimmer by default it's contain false value.
[beginAlign]: it will set the begin value forgradientColor by defult its value Alignment.topLeft
[endAlign]: it will set the end value forgradientColor by defult its value Alignment.bottomRight
[hasBottomBox]: when it is true then it will show bottom Rect style Boxes otherwise its hide the Boxes by defult its value false
[padding]: it wiil set the padding of parent container by default its value 16.0 from all side(left,right,top,bottom)
[margin]: it wiil set the margin of parent container by default its value 16.0 from all side(left,right,top,bottom)
[hasCustomColors]: it will allow you to use custom colors by default its value is false. set trueif you want to use your own custom colors
[colors]: it will contains 3 colors list if you set "hasCustomColors" Property to true the your next step is give the list of colors to this colors property
Note: make sure the colors property contains only 3 colors not more or lesser than 3 othewise it will use its default colors
# ForCustomColors:
for custom colors you need to take two steps
Step1: set'hasCustomColors' property to trueStep2: give 3 colors to 'colors' property
# Example:
ListTileShimmer(
// Step 1: set hasCustomColors property to try
hasCustomColors: true,
// Step 2: give 3 colors to colors property
colors: [
// Dark colorColor(0xFF1769aa),
// light colorColor(0xFF4dabf5),
// Medium colorColor(0xFF2196f3)
],
),
1. LightModePlayStoreShimmer(),
2. DarkModePlayStoreShimmer( isDarkMode: true,),
3. PurplishModewith light BackgroundPlayStoreShimmer(
isPurplishMode: true,
),
5. PurplishModewith dark BackgroundPlayStoreShimmer(
isPurplishMode: true,
isDarkMode:true
),
6. WithBottomLines:
note: By deafult both lines are true
a) it will remove only first bottom line
ListTileShimmer(
hasBottomFirstLine:false
),
b) it will remove only second bottom line
ListTileShimmer(
hasBottomSecondLine:false
),
c) it will remove both bottom line
ListTileShimmer(
hasBottomFirstLine:false,
hasBottomSecondLine:false
),
7. WithMultiple options
PlayStoreShimmer(
isPurplishMode: true,
hasBottomLines: true,
isDarkMode: true,
),
Thank foryour love and support
if you have any suggestions letme know