सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
एक फ्लटर पैकेज जो PageView जैसे स्क्रॉल करने योग्य विजेट में वर्तमान स्थिति को दिखाने के लिए एक दृश्य डॉट इंडिकेटर प्रदान करता है। यह उपयोगकर्ताओं को एक अनुक्रम में पेज या स्लाइड्स के माध्यम से उनकी प्रगति को समझने में मदद करता है, जिसमें कस्टमाइज़ेबल डॉट आउटपुट और व्यवहार शामिल है। इंडिकेटर विभिन्न थीम, आकार और एनीमेशन का समर्थन करता है, जिससे यह ऑनबोर्डिंग स्क्रीन्स, इमेज स्लाइडर्स और गाइडेड टूर्स के लिए आदर्श है। यह हल्का है और सभी प्रमुख प्लेटफॉर्मों के साथ संगत है।
उपयोग
ऑनबोर्डिंग स्क्रीन्स
इमेज स्लाइडर्स
गाइडेड टूर्स
फॉर्म विजार्ड
कैरोसेल नेविगेशन
स्लाइड शो सूचकांक
मुख्य विशेषताएँ
कस्टमाइज़ की गई डॉट साइज़ और रंग
पृष्ठों के बीच स्मूथ एनिमेशन
कई थीम्स का समर्थन करता है
प्रतिक्रियाशील डिज़ाइन
PageView के साथ आसान एकीकरण
Platform-agnostic
इनके लिए उपयुक्त
मोबाइल ऐप विकासकर्ता
UI/UX डिजाइनर
ऑनबोर्डिंग फ्लो
इंटरैक्टिव ट्यूटोरियल
बहुपृष्ठीय सामग्री प्रदर्शित करता है
विचार योग्य बातें
PageView के साथ हस्ताक्षरित समन्वय की आवश्यकता है
स्टाइलिंग के अलावा सीमित कस्टमाइज़ेशन
कोई बिल्ट-इन स्वाइप गेस्चर नहीं
अनुपयुक्त गैर-स्क्रॉल कंटेंट के लिए
अतिरिक्त अवस्था प्रबंधन की आवश्यकता हो सकती है
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
dots_indicator
Widget to display dots indicator to show a position (for a PageView for example).
Breaking change in 5.0.0: this package now uses the standalone
material_ui package instead of
package:flutter/material.dart. Your app must also use material_ui (or
keep the deprecated MaterialUiCompatibilityBridge), otherwise tapping a
dot (onTap) throws No Material widget found. Requires Flutter
>=3.44.0 and Dart ^3.12.0. See the CHANGELOG for
details.
Quick start
The typical use case is to pair DotsIndicator with a PageView, syncing
position to the controller's current page:
You can change the default size of dots and also shape.
So you can choose to have a shape for inactive dots and another shape for the active dot for example. By default, the shape of dots are CircleBorder, so to have a rounded rectangle for active one, you need to change activeShape
By default a dot have a margin of 6 pixels on his left and right. It's EdgeInsets.symmetric(horizontal: 6.0).
But if you want you can change it, for example to increase the space between dots or to add top margin.
There is two other property, axis and reversed.
Axis is to display dots indicator horizontally (default) or vertically.
Also, you can set reversed: true to reverse the order of dots. (default: false).
For example, if you want to display the dots indicator vertically, but with the first dots on bottom :
Set axis: Axis.vertical and reversed: true.
Obviously, you can use reversed with Axis.horizontal.
When dotsCount is large (or unknown), showing every dot isn't practical.
Set fadeOutLastDot: true with a fadeOutDistance to only keep a window of
dots fully visible around the current position, fading the rest out — and
animate: true to transition smoothly as position changes.