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

पैकेज विवरणv1.1.1

sticky_footer_scrollview

एक फ्लटर विजेट जो स्क्रॉल करने योग्य है और एक स्टिकी फुटर या तो स्क्रीन के नीचे या स्क्रॉल बॉडी के अंत में चिपकता है।

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
1.2 हज़ार
लाइक
24
Pub अंक
160

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

flutter pub add sticky_footer_scrollview

पैकेज अवलोकन

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

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

उपयोग

  • चैट इंटरफेस
  • स्थायी क्रियाओं वाले फॉर्म इनपुट
  • स्क्रॉल करने योग्य सूचियों में नीचे का नेविगेशन
  • स्थिर नियंत्रण के साथ डायनामिक सामग्री
  • मोबाइल और वेब ऐप फुटर

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

  • स्क्रीन नीचे स्टिकी फुटर
  • फुटर सामग्री के अंत में चिपक जाता है
  • क्रॉस-प्लेटफॉर्म समर्थन
  • ScrollView के साथ आसान एकीकरण
  • नियत व्यवहार को कस्टमाइज़ करना
  • Android, iOS, Web, macOS, Windows और Linux पर काम करता है

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

  • स्थायी पैर वाले स्क्रॉल करने योग्य UI बनाने वाले विकासकर्मी
  • प्रतिक्रियाशील बॉटम बार की आवश्यकता वाले ऐप
  • स्टिकी तत्वों के लिए डिजाइनर
  • बहु-प्लेटफॉर्म Flutter प्रोजेक्ट
  • गतिशील स्थान आवश्यक होने वाले UI घटक

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

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

मूल README

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

sticky_footer_scrollview

pub package

A Flutter Widget that is scrollable with a sticky footer either stick to the bottom of screen of the end of the scroll body.

Background

This package using SingleScrollView and CustomMultiChildLayout to acheive a scrollable widget with a sticky footer. This allow a dynamic height of child widgets in scroll body.

At the same time, because of the SingleScrollView with Column approach, this is not recommended to use with lots of child widgets for performance reason. You may simiply test with the example to see whether it is fit for your case.

Usage

This shows Widget's full customizations:

StickyFooterScrollView({    
    this.footer,
    @required this.itemBuilder,
    @required this.itemCount,
    this.scrollController,
})
  1. footer is the footer widget that is placed either at the bottom of screen or the end of the scroll body.
  2. itemBuilder to build child widgets of scroll body
  3. itemCount is the nunber of child widgets in scroll body. Only allows >= 0.
  4. scrollController allows maunally jump to certain offset position.

Example

when scrollbody is shorter than the avialble widget height

when scrollbody is longer than the avialble widget height

@override
  Widget build(BuildContext context) {
    return SafeArea(
      child: Scaffold(
        body: StickyFooterScrollView(
          itemCount: 50,
          itemBuilder: (context, index) {
            return Card(
              child: ListTile(
                title: Text('content $index'),
              ),
              color: Colors.pinkAccent,
            );
          },
          footer: AppBar(
            title: Text('i stick at bottom'),
          ),
        ),
      ),
    );
  }

Lisence

MIT

श्रेणियाँ

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

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

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