सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
scrollable पैकेज एक सुस्त और कस्टमाइज़ किए गए स्क्रॉल करने वाले विजेट्स के साथ फ्लटर की स्क्रॉलिंग क्षमता को बढ़ाता है। इसमें आंतरिक छुआई प्रतिक्रिया, स्वचालित कीबोर्ड बंद करना, और प्लेटफॉर्म के बीच सुधारित स्क्रॉल व्यवहार शामिल है। उन विकासकर्ताओं के लिए डिज़ाइन किया गया है जो निखारे गए स्क्रॉल इंटरैक्शन चाहते हैं, यह सभी प्रमुख प्लेटफॉर्म जैसे Android, iOS, Web, macOS, Windows और Linux को सपोर्ट करता है। यह पैकेज फ्लटर के मूल ScrollView घटकों को अतिरिक्त विशेषताओं के साथ विस्तारित करता है जो उपयोगकर्ता अनुभव को बढ़ाते हैं बिना कार्यक्षमता या लचीलापन के नुकसान के।
उपयोग
फॉर्म में स्क्रॉल इंटरैक्शन को बढ़ाएं
हैप्टिक फीडबैक के साथ प्रतिक्रियाशील सूचियाँ बनाना
कीबोर्ड को बंद करने वाले स्क्रॉल करने योग्य इंटरफेस बनाना
स्क्रॉल करने योग्य सामग्री में एक्सेसिबिलिटी में सुधार
कई प्लेटफॉर्मों पर स्मूथ स्क्रॉलिंग का अनुप्रयोग
मुख्य विशेषताएँ
स्क्रॉल पर हैप्टिक फीडबैक
स्वचालित कीबोर्ड अनुमोदन
प्लेटफॉर्म के बीच स्क्रॉल व्यवहार
कस्टमाइज़ किए गए स्क्रॉल फिजिक्स
निर्मित स्क्रॉल सूचक
विस्तारयोग्य विजेट संरचना
इनके लिए उपयुक्त
इंटरैक्टिव स्क्रॉल करने योग्य UI बनाने वाले डेवलपर्स
स्पर्श प्रतिक्रिया की आवश्यकता वाले ऐप्स
फॉर्म-भारी एप्लिकेशन
बहु-प्लेटफॉर्म Flutter प्रोजेक्ट
प्राप्त करने योग्यता-केंद्रित डिज़ाइन
विचार योग्य बातें
Flutter के स्क्रॉल सिस्टम की समझ आवश्यक है
बंडल के आकार में थोड़ा वृद्धि हो सकती है
मूल उपयोग के अलावा सीमित दस्तावेज़न
सरल सूची प्रदर्शन के लिए नहीं बनाया गया है
कस्टम स्क्रॉल कंट्रोलर के साथ सबसे अच्छा उपयोग किया जाता है
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
🔥 A powerful set of scrollable widgets: haptics, keyboard dismissing, and more 🔥
Highly reccomended to use ClampingScrollPhysics for the physics of whatever scrollable you're wrapping, as it works best with haptics.
child (required): This widget's child.
bubbleUpScrollNotifications: Whether the widget should bubble up scroll notifications, or block them.
heavyHapticsAtEdgeEnabled: When a scroll reaches the edge, if there should be a haptic effect emitted.
hapticEffectAtEdge: Which kind of haptic effect should be emitted when the scroll edge is reached?
hapticEffectDuringScroll: Which kind of haptic effect should be emitted during the scroll.
distancebetweenHapticEffectsDuringScroll: The distance, in pixels, that should be scrolled before emitting a new haptic scroll effect.
Keyboard Dismiss
KeyboardDismiss
child (required): This widget's child.
bubbleUpScrollNotifications: Whether the widget should bubble up scroll notifications, or block them.
closeKeyboardOnTap: If the keyboard should also be closed just on the widget being tapped.
closeKeyboardOnVerticalSwipe: If the keyboard should be closed when a vertical swipe occurs.
onKeyboardDismissed: Callback triggered when a dismiss occurs.
Scrollable View
ScrollableView
child (required): This widget's child.
controller (required): A ScrollController to manage the scrolling of the widget.
bubbleUpScrollNotifications: Whether the widget should bubble up scroll notifications, or block them.
closeKeyboardOnScroll: Whether the keyboard should be automatically closed on the widget being scrolled.
closeKeyboardOnTap: If the keyboard should also be closed just on the widget being tapped.
physics: Physics of the scroll view. Highly reccomended to use ClampingScrollPhysics as it works best with haptics.
scrollDirection: Direction of the scroll.
inlineBottomOrRightPadding: Inline padding of the scroll view. This is a clean substitute to having to add SizedBox widgets inside your scroll view. For the bottom (if vertical) or right (if horizontal) of the scroll view.
inlineTopOrLeftPadding: Inline padding of the scroll view. This is a clean substitute to having to add SizedBox widgets inside your scroll view. For the top (if vertical) or left (if horizontal) of the scroll view.
padding: Outer padding of the widget.
hapticsEnabled: If haptics should be enabled.
distancebetweenHapticEffectsDuringScroll: The distance, in pixels, that should be scrolled before emitting a new haptic scroll effect.
heavyHapticsAtEdgeEnabled: If the haptics when the edge of the scroll is reached should be enabled or not.
hapticEffectAtEdge: Which kind of haptic effect should be emitted when the scroll edge is reached?
hapticEffectDuringScroll: Which kind of haptic effect should be emitted during the scroll.
primary: Whether this is the primary scroll view associated with the parent PrimaryScrollController.
dragStartBehavior: Determines the way that drag start behavior is handled.
restorationId: Restoration ID to save and restore the scroll offset of the scrollable.
reverse: Whether the scroll view scrolls in the reading direction.
closeKeyboardOnVerticalSwipe: If the keyboard should be closed when a vertical swipe occurs.
Additional Info 📣
The package is always open to improvements, [suggestions](mailto:me@matthewtrent.me), and additions!
I'll look through PRs and issues as soon as I can!