सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
sliver_catalog एक Flutter पैकेज है जो प्रयोगात्मक और रचनात्मक स्लिवर का चयनित संग्रह प्रदान करता है, जो छलांग युक्त इंटरफेस को बढ़ावा देता है। विशिष्ट, दृश्य रूप से आकर्षक छलांग अनुभव खोज रहे डेवलपर्स के लिए बनाया गया, यह Flutter के आंतरिक स्लिवर घटकों को नवीनतम लेआउट और व्यवहार के साथ विस्तारित करता है। जटिल छलांग इंटरैक्शन वाले ऐप में प्रोटोटाइपिंग या उपस्थिति जोड़ने के लिए आदर्श, यह पैकेज मोबाइल, वेब और डेस्कटॉप सहित सभी प्रमुख प्लेटफॉर्म का समर्थन करता है। इसकी मॉड्यूलर डिजाइन मौजूदा स्क्रॉल व्यू में आसानी से एकीकरण की अनुमति देती है।
उपयोग
गतिशील स्क्रॉल करने योग्य यूआई बनाना
उन्नत स्क्रॉल प्रभाव के प्रोटोटाइपिंग
एप्लिकेशन के दृश्य आकर्षण में सुधार करना
कस्टम स्क्रॉल लेआउट बनाना
प्रयोगात्मक स्लिवर व्यवहार जोड़ना
मुख्य विशेषताएँ
प्रयोगात्मक स्लिवर विजेट्स
रचनात्मक स्क्रॉल डिज़ाइन
क्रॉस-प्लेटफॉर्म समर्थन
मॉड्यूलर और विस्तार्य
ScrollView के साथ आसान एकीकरण
इनके लिए उपयुक्त
स्क्रॉल प्रभावों का अन्वेषण कर रहे Flutter विकासकर्ता
अद्वितीय यूआई घटक चाहने वाले डिज़ाइनर
दृश्य नवाचार की तलाश में ऐप निर्माता
नए स्क्रॉल पैटर्न का परीक्षण कर रहे प्रोटोटाइपर्स
अमीर्ण गतिशील अनुभव बनाने वाली टीमें
विचार योग्य बातें
प्रयोगात्मक परियोजनाओं के लिए सबसे उपयुक्त
अतिरिक्त स्टाइलिंग की आवश्यकता हो सकती है
उत्पादन स्थिरता के लिए अनुशंसित नहीं
सीमित दस्तावेज़
जटिल लेआउट के साथ संभावित प्रदर्शन प्रभाव
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
What this library is
A collection of experimental and creative slivers for Flutter. Extend your scrolling experience beyond the basics.
Gallery
Demo
Overview
Sliver Catalog provides a set of advanced and experimental slivers for Flutter, enabling developers to create unique, visually engaging scroll effects. The package includes basic slivers as a platform for creating effects and specific implementations that provide ready-to-use effects.
Basics
ScrollHijackSliver: A sliver that consumes a specified amount of scrollable space before allowing its child to start scrolling.
LeavingViewportShaderSliver: Applies a shader on top of the child while it leaves the viewport.
LeavingViewportTransformedRenderSliver: A render object that applies a transformation to the child while it leaves the viewport.
Ready-to-use effects
SpinnerSliver: Rotates its child as it leaves the viewport, with configurable anchor and angle.
GliderSliver: Smoothly shifts the child in and out of the viewport.
FreezeSliver: Applies a freezing effect to the child while it leaves the viewport.
BloodSliver: Applies a blood covering effect to the child while it leaves the viewport.
Explore the library
ScrollHijackSliver
A sliver that consumes a specified amount of scrollable space before allowing its child to start scrolling. This is useful for creating custom scroll-driven animations and effects.
Key features:
Exposes a ValueListenable<double> progress (0.0–1.0) to the builder, so you can animate your child based on the progress.
Supports different progress calculation behaviors via ScrollHijackProgressBehavior.
A sliver that applies a fragment shader effect to its child as it leaves the viewport. This enables advanced visual effects as the user scrolls.
Key features:
Can operate with a raw FragmentShader that uses a specific order of arguments (size, offset, progress), or with a custom shader wrapper for any uniform order via the LeavingViewportShader interface.
The shader receives the child's size, paint offset, and a progress value (0.0–1.0) indicating how much the child has left the viewport.
Example:
CustomScrollView(
slivers: [
// Using a raw FragmentShader (default uniform order)LeavingViewportShaderSliver.fromFragmentShader(
shader: myFragmentShader,
child: Image.network('https://...'),
),
// Using a custom wrapper for arbitrary uniform orderLeavingViewportShaderSliver(
shader: MyCustomLeavingViewportShader(),
child: Image.network('https://...'),
),
// ... other slivers ...
],
)
There are also two built-in inheritances of LeavingViewportShaderSliver:
FreezeSliver
A sliver that applies a "freezing" shader effect to its child as it leaves the viewport. This effect is built-in and requires no manual shader setup.
Key features:
Uses a predefined freezing shader bundled with the package.
No shader code required—just wrap a content with the sliver.
A sliver that applies a "blood covering" shader effect to its child as it leaves the viewport. This effect is built-in and requires no manual shader setup.
Key features:
Uses a predefined blood shader bundled with the package.
No shader code required—just wrap a content with the sliver.
A base render sliver for creating scroll-driven 3D or 2D transformations as a child leaves the viewport. This class is intended for advanced use, enabling you to define custom transformation effects (such as rotation, scaling, skewing, etc.) based on scroll progress.
Key features:
Exposes a performTransform method to define any transformation matrix based on child size and leaving progress.
Handles all the layout, painting, and hit testing logic for you.
Allows to define a custom hit testing logic if it is necessary.
Usage:
To create a custom effect, extend LeavingViewportTransformedRenderSliver and implement performTransform.
We appreciate any form of support, whether it's a financial donation, a public sharing, or a star on GitHub and a like on Pub. If you want to provide financial support, there are several ways you can do it: