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

liquid_pull_to_refresh कवर
पैकेज विवरणv3.0.1

liquid_pull_to_refresh

फ्लटर के लिए एक सुंदर और कस्टम रिफ्रेश इंडिकेटर, कुछ कूल एनीमेशन और ट्रांज़िशन के साथ।

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

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

flutter pub add liquid_pull_to_refresh

पैकेज अवलोकन

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

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

उपयोग

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

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

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

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

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

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

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

मूल README

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

Liquid Pull To Refresh

A beautiful and custom refresh indicator for flutter highly inspired from Ramotion Pull Down to Refresh. Try out our live example app.



Table of contents

Installing

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  liquid_pull_to_refresh: ^3.0.1
2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get
3. Import it

Now in your Dart code, you can use:

import 'package:liquid_pull_to_refresh/liquid_pull_to_refresh.dart';

Usage

For adding this custom refresh indicator in your flutter app, you have to simply wrap ListView or GridView inside LiquidPullToRefresh. Also you have provide the value of onRefresh parameter which is a refresh callback.

Note - LiquidPullToRefresh can only be used with a vertical scroll view.

For example:

LiquidPullToRefresh(
        key: _refreshIndicatorKey,	// key if you want to add
        onRefresh: _handleRefresh,	// refresh callback
        child: ListView(),		// scroll view
      );

If you do not want the opacity transition of child then set showChildOpacityTransition: false. Preview regarding the both form of this widget is follows :-

showChildOpacityTransition: true showChildOpacityTransition: false

Documentation

LiquidPullToRefresh Class
Dart attribute Datatype Description Default Value
child ScrollView The widget below this widget in the tree. @required
onRefresh RefreshCallback A function that's called when the refreshing of page takes place. @required
height double The distance from the child's top or bottom edge to where the box will settle after the spring effect. 100.0
springAnimationDurationInMilliseconds int Duration in milliseconds of springy effect that occurs when we leave dragging after full drag. 1000
borderWidth double Border width of progressing circle in Progressing Indicator. 2.0
showChildOpacityTransition bool Whether to show child opacity transition or not. true
color Color The progress indicator's foreground color. ColorScheme.secondary
backgroundColor Color The progress indicator's background color. ThemeData.canvasColor
animSpeedFactor double Controls the speed of the animation after refresh. Used to fasten the ending animation. 1.0

For help on editing package code, view the flutter documentation.

Bugs or Requests

If you encounter any problems feel free to open an issue. If you feel the library is missing a feature, please raise a ticket on GitHub and I'll look into it. Pull request are also welcome.

See Contributing.md.

Donate

If you found this project helpful or you learned something from the source code and want to thank me, consider buying me a cup of :coffee:

Contributors

Thanks goes to these wonderful people (emoji key):


opannapo

💻

Anthony Taormina

📖

Erzhan

⚠️

Puttipong Wongrak

🐛

Aayush Malhotra

🐛

benja8151

📦 🚧

Remco Schrijver

📦 🚧

This project follows the all-contributors specification. Contributions of any kind welcome! See Contributing.md.

License

Liquid-Pull-To-Refresh is licensed under MIT license. View license.

श्रेणियाँ

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

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