सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
एफ्लूटर एप्स के लिए एक साफ और हल्का प्रगति HUD, SVProgressHUD से प्रेरित। यह उपयोगकर्ता अनुभव को बाधित किए बिना लोडिंग इंडिकेटर, सफलता संदेश और त्रुटियाँ दिखाने का एक सरल, आकर्षक तरीका प्रदान करता है। एंड्रॉइड और आईओएस के लिए डिज़ाइन किया गया है, मिनिमम सेटअप के साथ मौजूदा एफ्लूटर प्रोजेक्ट में बिना किसी दिक्कत के एकीकृत होता है। पैकेज के लिए कस्टमाइज़ेबल दिखावट और व्यवहार है, जबकि प्रदर्शन और प्रतिक्रिया बनाए रखी जाती है।
उपयोग
नेटवर्क रिक्वेस्ट के दौरान लोडिंग स्थिति प्रदर्शित करना
कार्रवाई के बाद सफलता या त्रुटि संदेश दिखाएं
फॉर्म सबमिशन के दौरान यूएक्स में सुधार करना
बैकग्राउंड टास्क के दौरान प्रतिक्रिया प्रदान करना
मोबाइल ऐप्स में लोडिंग यूआई को सरल बनाना
मुख्य विशेषताएँ
हल्का और तेज़
क्रॉस-प्लेटफ़ॉर्म समर्थन (Android और iOS)
कस्टमाइज़ करने योग्य दिखावट
HUD को दिखाने/छुपाने के लिए सरल API
कई संदेश प्रकारों का समर्थन करता है (सफलता, त्रुटि, जानकारी)
Flutter विजेट्स के साथ आसान एकीकरण
इनके लिए उपयुक्त
एक न्यूनतम लोडिंग इंडिकेटर की तलाश में विकासकर्ता
निरंतर प्रगति फीडबैक की आवश्यकता वाले ऐप्स
सुचारू UX संक्रमण पर ध्यान केंद्रित परियोजनाएँ
मूल प्लेटफॉर्म पर SVProgressHUD का उपयोग करने वाली टीमें
त्वरित कार्यान्वयन वाले HUD घटकों की आवश्यकता वाले Flutter ऐप्स
विचार योग्य बातें
बुनियादी स्टाइलिंग के अलावा सीमित कस्टमाइज़ेशन
कोई निर्मित एनीमेशन नियंत्रण नहीं है
मूल आर्किटेक्चर प्रदर्शन पर निर्भर करता है
जटिल UI प्रवाह के लिए अतिरिक्त संगठन की आवश्यकता हो सकती है
उच्च अनुकूलित HUD डिज़ाइन के लिए उपयुक्त नहीं
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
🚀 Ship Your App Faster: Try Fastforge - The simplest way to build, package and distribute your Flutter apps.
flutter_svprogresshud
A clean and lightweight progress HUD for flutter app, based on SVProgressHUD.
The plugin supports almost all of SVProgressHUD APIs, for Android we have almost replicated SVProgressHUD effects (View code).
SVProgressHUD is created as a singleton (i.e. it doesn't need to be explicitly allocated and instantiated; you directly call SVProgressHUD.method()).
Use SVProgressHUD wisely! Only use it if you absolutely need to perform a task before taking the user forward. Bad use case examples: pull to refresh, infinite scrolling, sending message.
Using SVProgressHUD in your app will usually look as simple as this:
If you'd like to stack HUDs, you can balance out every show call using:
+ (void)popActivity;
The HUD will get dismissed once the popActivity calls will match the number of show calls.
Or show a confirmation glyph before before getting dismissed a little bit later. The display time depends on minimumDismissTimeInterval and the length of the given string.
SVProgressHUD.showInfo(status: 'Useful Information.');
SVProgressHUD.showSuccess(status: 'Great Success!');
SVProgressHUD.showError(status: 'Failed with Error');
Customization
SVProgressHUD can be customized via the following methods:
voidsetDefaultStyle(SVProgressHUDStyle style); // default is SVProgressHUDStyle.LightvoidsetDefaultMaskType(SVProgressHUDMaskType maskType); // default is SVProgressHUDMaskType.NonevoidsetDefaultAnimationType(SVProgressHUDAnimationType type); // default is SVProgressHUDAnimationType.FlatvoidsetMinimumSize(Size minimumSize); // default is Size.zero, can be used to avoid resizingvoidsetRingThickness(num width); // default is 2 ptvoidsetRingRadiu(num radius); // default is 18 ptvoidsetRingNoTextRadius(num radius); // default is 24 ptvoidsetCornerRadius(num cornerRadius); // default is 14 ptvoidsetBorderColor(Color color); // default is nullvoidsetBorderWidth(num width); // default is 0voidsetForegroundColor(Color color); // default is Colors.black, only used for SVProgressHUDStyle.Custom// void setForegroundImageColor(Color color); // default is the same as foregroundColorvoidsetBackgroundColor(Color color); // default is Colors.white, only used for SVProgressHUDStyle.CustomvoidsetBackgroundLayerColor(Color color); // default is [Color colorWithWhite:0 alpha:0.4], only used for SVProgressHUDMaskType.CustomvoidsetImageViewSize(Size size); // default is 28x28 pt// void setShouldTintImages(bool shouldTintImages); // default is true// void setInfoImage(UIImage image); // default is the bundled info image provided by Freepik// void setSuccessImage(UIImage image); // default is bundled success image from Freepik// void setErrorImage(UIImage image); // default is bundled error image from Freepik// void setGraceTimeInterval(num interval); // default is 0 secondsvoidsetMinimumDismissTimeInterval(num interval); // default is 5.0 seconds// void setMaximumDismissTimeInterval(num interval); // default is CGFLOAT_MAXvoidsetFadeInAnimationDuration(num duration); // default is 0.15 secondsvoidsetFadeOutAnimationDuration(num duration); // default is 0.15 secondsvoidsetHapticsEnabled(bool hapticsEnabled); // default is false