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

reorderable_grid कवर
पैकेज विवरणv1.0.13

reorderable_grid

फ्लटर के नेटिव रीऑर्डरेबल लिस्ट के समान एक पूर्ण रीऑर्डरेबल ग्रिड इम्प्लीमेंटेशन।

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

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

flutter pub add reorderable_grid

पैकेज अवलोकन

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

एक फ्लटर पैकेज जो एक पूरी तरह से कार्यात्मक रिओर्डरेबल ग्रिड प्रदान करता है, जिससे उपयोगकर्ता ग्रिड आइटम को ड्रैग और ड्रॉप करके उन्हें गतिशील रूप से पुनर्व्यवस्थित कर सकते हैं। फ्लटर के मूल ReorderableListView से प्रेरित, यह सभी प्रमुख प्लेटफॉर्म को समर्थन देता है, जिसमें एंड्रॉइड, आईओएस, वेब, मैकओएस, विंडोज और लिनक्स शामिल हैं। ग्रिड चिकनी एनीमेशन बनाए रखता है और टच गेस्चर को कुशलता से संभालता है, जिससे यह डैशबोर्ड, फोटो गैलरी या टास्क बोर्ड जैसे कस्टमाइज़ेबल लेआउट के लिए आदर्श है। यह मौजूदा फ्लटर ऐप्स में बिना किसी दिक्कत के एकीकृत होता है और कस्टमाइज़ेशन के लिए एक सरल API प्रदान करता है।

उपयोग

  • कस्टमाइज़ेबल डैशबोर्ड लेआउट
  • फोटो या मीडिया गैलरी को पुनर्क्रमण
  • कार्य या कार्ड-आधारित इंटरफेस पुनर्व्यवस्था
  • उपयोगकर्ता-परिभाषित विजेट व्यवस्था
  • इंटरैक्टिव ग्रिड-आधारित डेटा प्रबंधन

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

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

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

  • इंटरैक्टिव ग्रिड इंटरफेस बनाने वाले डेवलपर्स
  • उपयोगकर्ता-चालित लेआउट कस्टमाइजेशन की आवश्यकता वाले ऐप्स
  • गतिशील सामग्री संगठन वाले परियोजनाएँ
  • सुगम यूआई इंटरैक्शन चाहने वाले डिजाइनर
  • मल्टीप्लेटफॉर्म के लिए फ्लटर एप्लिकेशन

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

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

मूल README

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

:white_square_button: Reorderable Grid

Pub Version Likes Pub points Pub codecov

A full reorderable grid implemention similar to Flutters Reorderable_List. with full ReorderableGridView, ReorderableGrid and SliverReorderableGrid implementations

gif showing basic usage

:hammer: How it works

ReorderableGridView is a drop in replacement for the existing GridView and adds an onReorder callback that provides the original and new index of the reordered item.

/// create a new list of data
final items = List<int>.generate(40, (index) => index);

/// when the reorder completes remove the list entry from its old position
/// and insert it at its new index
void _onReorder(int oldIndex, int newIndex) {
setState(() {
    final item = items.removeAt(oldIndex);
    items.insert(newIndex, item);
});
}

@override
Widget build(BuildContext context) {
return MaterialApp(
    home: Scaffold(
      body: ReorderableGridView.extent(
        maxCrossAxisExtent: 250,
        onReorder: _onReorder,
        childAspectRatio: 1,
        children: items.map((item) {
          /// map every list entry to a widget and assure every child has a 
          /// unique key
          return Card(
            key: ValueKey(item),
            child: Center(
            child: Text(item.toString()),
            ),
          );
        }).toList(),
      ),
    ),
);
}

ReorderableGrid provides all the constructors and parameters the normal GridView has. The package also includes:

  • ReorderableGridView, which is a prebuild Material-ish implementation of the grid.
  • ReorderableGrid, A barebones widget that allows you to customize the grid however you want
  • SliverReorderableGrid, a reorderable grid sliver for custom scroll implementations

Documentation

You can find all features and fuctionality documented here

:wave: Get Involved

If this package is useful to you please :thumbsup: on pub.dev and :star: on github. If you have any Issues, recommendations or pull requests I'd love to see them!

श्रेणियाँ

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

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