सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
एक फ्लटर पैकेज जो उपयोगकर्ताओं को सुचारू ड्रैग-एंड-ड्रॉप इंटरैक्शन के साथ रीऑर्डरेबल स्टेगर्ड ग्रिड लेआउट बनाने की अनुमति देता है। यह मानक स्क्रॉल व्यू की क्षमता को बढ़ाता है, जिससे स्टेगर्ड ग्रिड में आइटम को डायनामिक रूप से पुनर्व्यवस्थित किया जा सकता है, जो फोटो गैलरी या टास्क लिस्ट जैसे कस्टमाइज़ेबल कंटेंट डिस्प्ले के लिए आदर्श है। यह पैकेज सभी प्रमुख प्लेटफॉर्म का समर्थन करता है और मौजूदा फ्लटर प्रोजेक्ट में बिना किसी दिक्कत के एकीकृत हो सकता है।
उपयोग
कस्टमाइज़ करने योग्य फोटो गैलरी
कार्य प्रबंधन इंटरफेस
डायनामिक कंटेंट सॉर्टिंग
उपयोगकर्ता-निर्देशित लेआउट व्यवस्था
इंटरैक्टिव डैशबोर्ड विजेट्स
मुख्य विशेषताएँ
ड्रैग-एंड-ड्रॉप पुनर्व्यवस्था
स्टैगर्ड ग्रिड लेआउट समर्थन
क्रॉस-प्लेटफ़ॉर्म संगतता
पुनर्व्यवस्था के दौरान चिकनी एनीमेशन
मौजूदा Flutter ऐप्स में आसान एकीकरण
इनके लिए उपयुक्त
इंटरैक्टिव यूआई बनाने वाले डेवलपर्स
गतिशील आइटम व्यवस्था की आवश्यकता वाले ऐप
दृश्य सामग्री संगठन वाले परियोजनाएँ
सरल ड्रैग गेस्चर वाले उपयोगकर्ता
कई प्लेटफॉर्म के लिए फ्लटर विकासकर्ता
विचार योग्य बातें
आइटम की अद्वितीयता का सावधानीपूर्वक निर्माण करने की आवश्यकता है
बड़े डेटासेट के साथ प्रदर्शन पर प्रभाव पड़ सकता है
पुनर्व्यवस्था तर्क के लिए उचित अवस्था प्रबंधन की आवश्यकता है
मूल छलांग व्यवहार के अतिरिक्त सीमित कस्टमाइज़ेशन
मध्यम आकार के संग्रह के लिए सबसे उपयुक्त
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
reorderable_staggered_scroll_view
A Flutter package for creating reorderable and draggable staggered grid and list views. This package provides a smooth and intuitive way to reorder items in both grid and list layouts, making it perfect for creating interactive and user-friendly applications.
List Demo
Grid Demo
Features
Reorder items with ease using drag and drop gestures.
Supports both staggered grid and list layouts.
Configurable drag-and-drop behavior.
Designed for a seamless user experience.
Getting Started
To use this package, add it to your pubspec.yaml file:
You can integrate the ReorderableStaggeredScrollView package with your custom list or grid widget by wrapping your custom list or grid widget with the necessary components.
DragNotification(
child: ListView(
scrollDirection: Axis.vertical,
children: [
DragContainer(
scrollDirection: Axis.vertical,
isLongPressDraggable: true,
buildItems: (List<Widget> children) {
returnYourCustomListViewWidget(
// Your custom list or grid widget configuration
children: children,
);
},
dataList: yourList, // Your List of ReorderableStaggeredScrollViewListItem or ReorderableStaggeredScrollViewGridItem
items: (ReorderableStaggeredScrollViewListItem element, DraggableWidget draggableWidget) {
// Map each item in your dataList into a draggable widgetreturnContainer(
key: ValueKey(element.key.toString()),
child: draggableWidget(element.widget),
);
}
),
],
),
);
Replace the comments with your actual widget configuration and data. This setup will allow you to use the ReorderableStaggeredScrollView package with your custom widget.
For more detailed usage instructions and configuration options, refer to the example directory in this repository.
Contributing
We welcome contributions! If you have ideas for improvements or encounter issues, please open an issue or submit a pull request.
Author
itisnajim, itisnajim@gmail.com
License
This package is licensed under the MIT License. See the LICENSE file for more details.