सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
Smooth Page Indicator एक कस्टमाइज़ेबल, एनिमेटेड पेज इंडिकेटर है जो Flutter के लिए है और विभिन्न आंतरिक दृश्य प्रभावों का समर्थन करता है। यह पेजव्यू विजेट्स के साथ बिना किसी रुकावट के एकीकृत होता है ताकि उपयोगकर्ता को एक छलांग योग्य सूची में अपनी वर्तमान स्थिति के बारे में स्पष्ट फीडबैक मिल सके। पैकेज में चिकने संक्रमण और गतिशील शैली विकल्प हैं, जिससे डेवलपर्स अपने ऐप के डिज़ाइन भाषा के अनुरूप उपस्थिति और व्यवहार को ढाल सकते हैं। सभी प्रमुख प्लेटफॉर्मों के समर्थन के साथ, यह सुनिश्चित करता है कि मोबाइल, वेब या डेस्कटॉप पर उपयोगकर्ता अनुभव एक समान रहे।
उपयोग
ऑनबोर्डिंग फ्लो में प्रगति दिखाएं
इमेज स्लाइडर में यूएक्स को बढ़ावा देना
बहु-चरण फॉर्म में चरणों का दृश्यीकरण
टैब्स के बीच एनिमेटेड नेविगेशन
आकर्षक ट्यूटोरियल स्क्रीन बनाना
मुख्य विशेषताएँ
एम्बेडेड एनिमेशन प्रभाव
कस्टमाइज़ की गई रंग और आकार
कई पृष्ठ दृश्य प्रकारों का समर्थन
प्लेटफॉर्म के आसपास प्रतिक्रियाशील डिज़ाइन
PageView के साथ आसान एकीकरण
विस्तार्य प्रभाव प्रणाली
इनके लिए उपयुक्त
ऑनबोर्डिंग स्क्रीन्स
इमेज गैलरी
बहु-चरण जादूगर
इंटरैक्टिव ट्यूटोरियल
मोबाइल और वेब एप्लिकेशन
विचार योग्य बातें
बहुत सारे संकेतकों के साथ प्रदर्शन पर प्रभाव पड़ सकता है
जटिल एनीमेशन के लिए सावधानीपूर्वक ट्यूनिंग की आवश्यकता होती है
कोड बढ़ाए बिना सीमित कस्टमाइजेशन
स्थिर, गतिशील नहीं सूचक के लिए उपयुक्त नहीं
मध्यम पृष्ठ संख्या के साथ सबसे अच्छा उपयोग किया जाता है
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
smooth_page_indicator
Introduction
Page indicators are a crucial part of any app that involves multiple pages. They help users to
understand the number of pages and their current position. SmoothPageIndicator is a Flutter
package that provides a set of animated page indicators with a variety of effects.
Effects
SmoothPageIndicator comes with a set of built-in effects that you can use to animate the active dot,
you can also customize each effect to your liking.
for more specific customization, try the CustomizableEffect which allows for more customization.
Effect
Preview
Worm
Worm style = WormStyle.thin [v1.0.0]
Expanding Dots
Jumping dot
Jumping dot with vertical offset [v1.0.0]
Scrolling Dots
Slide
Scale
Swap
Swap type = SwapType.yRotation [v1.0.0]
Color Transition [0.1.2]
Customizable demo-1 [v1.0.0]
Customizable demo-2 [v1.0.0]
Customizable demo-3 [v1.0.0]
Customizable demo-4 [v1.0.0]
Usage
SmoothPageIndicator uses the PageController's scroll offset to animate the active dot.
Smooth page indicator comes with a shipped it scrolling dots effect, (similar to the one used in instagram), it's useful when you have a large number of pages.
Customization
Each effect comes with its own set of properties that you can customize to your liking.
for example, you can customize direction, width, height, radius, spacing, paint style, color and more... of SlideEffect like follows:
These colors do not come from the app's ThemeData. Override them for a subtree with SmoothPageIndicatorTheme, or set dotColor and activeDotColor directly on an effect.
SmoothPageIndicatorTheme
SmoothPageIndicatorTheme is an InheritedTheme that configures default settings for descendant SmoothPageIndicator and AnimatedSmoothIndicator widgets. Wrap the subtree that should share the configuration: