सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
flutter_swiper_view एक उच्च प्रदर्शन वाला कैरोसेल विजेट है, जो विभिन्न लेआउट विकल्प और अनंत लूपिंग प्रदान करता है। Android, iOS, Web, macOS, Windows और Linux पर चिकने, प्रतिक्रियाशील स्वाइप अनुभव के लिए डिज़ाइन किया गया है, जिसमें कस्टमाइज़ किए गए एनीमेशन के साथ क्षैतिज और लंबवत स्क्रॉलिंग समर्थित है। छवि गैलरी, उत्पाद प्रदर्शन और इंटरैक्टिव कंटेंट स्लाइडर के लिए उपयुक्त, यह गतिशील UI के लिए एक लचीला आधार प्रदान करता है। पैकेज सक्रिय रूप से बनाए रखा जाता है और सभी मुख्य प्लेटफॉर्मों के साथ संगत है।
उपयोग
इमेज गैलरी
उत्पाद कैरोसेल
ऑनबोर्डिंग स्क्रीन्स
इंटरैक्टिव कंटेंट स्लाइडर
स्लाइड-आधारित नेविगेशन
मुख्य विशेषताएँ
बहुत सारे लेआउट प्रकार
अनंत लूप समर्थन
प्लेटफॉर्म के अनुकूलता
कस्टमाइज़ेबल एनिमेशन
चिकने स्वाइप गेस्चर
प्रतिक्रियाशील डिज़ाइन
इनके लिए उपयुक्त
इंटरएक्टिव यूआई बनाने वाले डेवलपर्स
दृश्य सामग्री कैरोसेल की आवश्यकता वाले ऐप
बहुप्लेटफॉर्म मोबाइल और डेस्कटॉप ऐप्स
ऑनबोर्डिंग अनुभव
ई-कॉमर्स उत्पाद प्रदर्शन
विचार योग्य बातें
बड़े डेटासेट के लिए प्रदर्शन समायोजन की आवश्यकता हो सकती है
सीमित निर्मित पृष्ठनिर्माण नियंत्रण
उन्नत डिज़ाइन के लिए कस्टम स्टाइल की आवश्यकता है
बहुत उच्च आवृत्ति अपडेट के लिए अनअनुकूलित
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
The best swiper for flutter , with multiple layouts, infinite loop. Compatible with Android & iOS.
:sparkles::sparkles: New Features:PageTransformer
Finally, we have PageTransformer like android, just set a transformer to Swiper,
it returns a widget that has been transformed. For now, only support for layout DEFAULT.
Thanks to @FlutterRocks ,you've done great job 👏.
The control also extends from SwiperPlugin,set SwiperControl() to show default control buttons.
Parameter
Default
Description
iconPrevious
Icons.arrow_back_ios
The icon data to display previous control button
iconNext
Icons.arrow_forward_ios
The icon data to display next.
color
Theme.of(context).primaryColor
Control button color
size
30.0
Control button size
padding
const EdgeInsets.all(5.0)
Control button padding
Controller
The Controller is used to control the index of the Swiper, start or stop autoplay.You can create a controller by SwiperController() and save the instance by futher usage.
Method
Description
void move(int index, {bool animation: true})
Move to the spicified index,with animation or not
void next({bool animation: true})
Move to next
void previous({bool animation: true})
Move to previous
void startAutoplay()
Start autoplay
void stopAutoplay()
Stop autoplay
Autoplay
Parameter
Default
Description
autoplayDelay
3000
Autoplay delay milliseconds.
autoplayDisableOnInteraction
true
If set true, autoplay is disabled when use swipes.
The CustomLayoutOption is designed to describe animations.
It is very easy to specify every state of items in Swiper.
CustomLayoutOption(
startIndex: -1, /// Which index is the first item of array below
stateCount: 3/// array length
)..addRotate([ // rotation of every item
-45.0/180,
0.0,
45.0/180
])..addTranslate([ /// offset of every itemconstOffset(-370.0, -40.0),
constOffset(0.0, 0.0),
constOffset(370.0, -40.0)
])