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

पैकेज विवरणv2.0.2

infinite_widgets

अनंत लेआउट विजेट, आपको डेटाबेस या नेटवर्क कॉल से अनंत सूची या अनंत ग्रिड बनाने में आसानी से मदद करते हैं।

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
584
लाइक
19
Pub अंक
140

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

flutter pub add infinite_widgets

पैकेज अवलोकन

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

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

उपयोग

  • API से बड़े डेटासेट को लोड करना
  • अनंत स्क्रॉलिंग फीड बनाना
  • लेटी लोडिंग के साथ डायनामिक ग्रिड्स बनाना
  • एप्प में पेज़ वाली सामग्री का अनुकूलन करना
  • रियल-टाइम डेटा स्ट्रीम को दिखाएं

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

  • कुशल लेटी लोडिंग
  • अनंत सूचियों और ग्रिड्स का समर्थन
  • निर्मित पृष्ठांकन संभाल
  • क्रॉस-प्लेटफ़ॉर्म संगतता
  • न्यूनतम बॉयलरप्लेट कोड
  • चिकन उपयोगकर्ता अनुभव

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

  • बड़े डेटा सेट वाले ऐप्स
  • सोशल मीडिया फीड्स
  • ई-कॉमर्स उत्पाद सूचियाँ
  • रियल-टाइम डेटा प्रदर्शन
  • सरल पेज़ीकरण की तलाश में विकासकर्मी

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

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

मूल README

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

infinite_widgets

Infinite layout widgets like lists, grids...

Infinite list

InfiniteListView has same attributes as a normal flutter ListView widget.

InfiniteListView.separated(
        itemBuilder: (context, index) {
          return Text('$index', style: TextStyle(color: Colors.red, fontWeight: FontWeight.bold));
        },
        itemCount: _data.length, // Current itemCount you have
        hasNext: _data.length < 200, // let the widget know if you have more data to show or not
        nextData: this.loadNextData, // callback called when end to the list is reach and hasNext is true
        separatorBuilder: (context, index) => Divider(height: 1),
      ),
    );

You can specify the last loading row by providing loadingWidget.

You can interact with the trigger to load additional data by default it's 300 but you can override it with scrollThreshold.

Infinite grid

InfiniteGridView has same attributes as a normal flutter GridView widget.

InfiniteGridView(
        gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 4),
        itemBuilder: (context, index) {
          return Text('$index', style: TextStyle(color: Colors.white));
        },
        itemCount: _data.length, // Current itemCount you have
        hasNext: _data.length < 200, // let the widget know if you have more data to show or not
        nextData: this.loadNextData, // callback called when end to the list is reach and hasNext is true
      ),
    );

You can specify the last loading row by providing loadingWidget.

You can interact with the trigger to load additional data by default it's 300 but you can override it with scrollThreshold.

श्रेणियाँ

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

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

अभी कोई डेटा उपलब्ध नहीं है।