सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
एक फ्लटर पैकेज जो मानक ReorderableListView को सुगम, एनिमेटेड ट्रांज़िशन के साथ बढ़ाता है जब आइटम को दोबारा व्यवस्थित किया जाता है। सरलता और प्रदर्शन के लिए डिज़ाइन किया गया, इससे जटिल कस्टम लॉजिक की आवश्यकता नहीं होती है। ऐसे सूचियों के लिए आदर्श जहां उपयोगकर्ता आइटम को बार-बार बदलते हैं, जैसे कि टास्क मैनेजर या कस्टमाइज़ करने योग्य डैशबोर्ड। पैकेज सभी प्रमुख प्लेटफॉर्म को समर्थन देता है और मौजूदा फ्लटर प्रोजेक्ट में बिना किसी दिक्कत के एकीकृत हो सकता है।
उपयोग
कार्य प्रबंधन ऐप
कस्टमाइज़ किए गए डैशबोर्ड लेआउट
ड्रैग-एंड-ड्रॉप आइटम पुनर्व्यवस्था
उपयोगकर्ता प्राथमिकता क्रमबद्धता
इंटरैक्टिव सूची इंटरफेस
मुख्य विशेषताएँ
स्मूथ एनिमेटेड ट्रांजिशन
सरल API एकीकरण
क्रॉस-प्लेटफॉर्म समर्थन
अनुकूलित प्रदर्शन
बिल्ट-इन ड्रैग फीडबैक
आसान कस्टमाइजेशन
इनके लिए उपयुक्त
सरल सूची पुनर्व्यवस्था की तलाश में विकासकर्ता
प्रतिक्रियाशील यूआई इंटरैक्शन की आवश्यकता वाले प्रोजेक्ट
गतिशील सामग्री क्रमबद्ध वाले एप्स
विकास गति को प्राथमिकता देने वाली टीमें
Flutter शुरुआती उन्नत विजेट्स का अन्वेषण कर रहे हैं
विचार योग्य बातें
बहुत बड़ी सूचियों के साथ प्रदर्शन प्रभावित हो सकता है
ऊर्ध्वाधर सूची लेआउट पर सीमित
आइटम कुंजियों का ध्यान से निपटना आवश्यक है
क्षैतिज पुनर्व्यवस्था के लिए उपयुक्त नहीं
स्थिर आइटम पहचानकर्ता के साथ सबसे अच्छा उपयोग
अन्य गesture डिटेक्टर्स के साथ संभावित टकराव
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
animated_reorderable_list
This library is a powerful and easy-to-use solution for implementing animated list and grid with
drag-and-drop functionality in Flutter.
Features
[x] Smooth transition during item insertion and removal from the list with animations.
[x] Drag and Drop support (ReorderableList) for both ListView and GridView with Animation.
[x] It can be both animated and reordered at the same time
[x] Animating items is as simple as updating the list.
[x] Pre-built animation like fade,scale, slide, flip etc for Flutter list.
[x] Provides support for both lists and grids
[x] Supports large lists and creates items on demand as they come into the viewport.
If not specified, then default FadeIn() animation will be applied.
Delay, duration, curve
Animation have optional delay, duration, begin, end and curve parameters. Animations run
in parallel, but you can use a delay to run them sequentially:
If a specific duration is provided for the animation, it will run for that specified duration.
However, if insertDuration or removeDuration are specified, it will override specific item
duration.
You can use custom insertItemBuilder or removeItemBuilder if you wish to implement your own
customized animations instead of relying on the built-in animations provided by the library.
In these custom builder functions, the child parameter represents the widget returned by the
itemBuilder callback, and the animation parameter provides the animation control.
If a custom insertItemBuilder is provided, it will override the enterTransition. Similarly, if
removeItemBuilder is provided, then it will override exitTransition.
Animations
The library provides a set of pre-built animations that can be used for item insertion and removal.
You can use multiple animations at the same time by providing a list of animations.
The following animations are available:
Animation Type
ListView Example
GridView Example
FadeIn
FlipInY
FlipInX
Landing
ScaleIn
ScaleInTop
ScaleInBottom
ScaleInLeft
ScaleInRight
Size
SlideInLeft
SlideInRight
SlideInDown
SlideInUp
Bugs and Feedback
We welcome and appreciate any suggestions you may have for improvement.
For bugs, questions, and discussions please use
the Github Issues.
Acknowledgments
This library builds upon the foundation laid by the incredible work of the Flutter team.
The core logic for animated list and drag-and-drop functionality are derived from Flutter's native
widgets, specifically AnimatedList and ReorderableListView.
Contribution
The Canopas team enthusiastically welcomes contributions and project participation! There are a
bunch of things you can do if you want to contribute! The Contributor Guide has
all the information you need for everything from reporting bugs to contributing entire new features.
Please don't hesitate to jump in if you'd like to, or even ask us questions if something isn't
clear.
Credits
animated_reorderable_list is owned and maintained by the Canopas team.
You can follow them on Twitter at @canopassoftware for
project updates and releases.