सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
कहानी पैकेज एक स्मूथ एनिमेशन और उच्च कस्टमाइज़ेबिलिटी के साथ इंस्टाग्राम स्टोरीज़ के आधार पर यूआई प्रदान करता है। यह विकासकर्ताओं को कस्टमाइज़ेबल ट्रांज़िशन, टाइमर और कंटेंट लेआउट के साथ इंटरैक्टिव, स्वाइप करने योग्य कहानी कार्ड बनाने में सक्षम बनाता है। डायनामिक कहानी सुनाने के अनुभव की आवश्यकता वाले ऐप्स के लिए उपयुक्त, यह मोबाइल, वेब और डेस्कटॉप सहित कई प्लेटफॉर्म का समर्थन करता है। पैकेज को फ्लटर के विजेट सिस्टम के साथ आसानी से एकीकृत करने के लिए डिज़ाइन किया गया है और इसमें दिखावट और व्यवहार दोनों के लिए व्यापक स्टाइलिंग विकल्प प्रदान किए गए हैं।
उपयोग
सोशल मीडिया शैली की कहानी फीड बनाना
इंटरैक्टिव ट्यूटोरियल या ओनबोर्डिंग फ्लो का निर्माण
समय सीमित सामग्री अपडेट दिखाएं
आकर्षक मार्केटिंग अभियानों को डिज़ाइन करना
उपयोगकर्ता प्रोफ़ाइल स्टोरी हाइलाइट्स कार्यान्वयन
मुख्य विशेषताएँ
समृद्ध और चलती कहानी संक्रमण
कस्टमाइज़ेबल स्टोरी कार्ड लेआउट
प्लेटफॉर्म के आसपास स्वाइप गेस्चर समर्थन
निर्धारित अवधि और प्रगति संकेतक
विस्तारशील थीम और स्टाइलिंग विकल्प
इनके लिए उपयुक्त
सोशल फीचर्स बना रहे डेवलपर्स
समय-सीमित सामग्री डिलीवरी की आवश्यकता वाले ऐप्स
एनिमेटेड UI कंपोनेंट्स खोज रहे डिजाइनर
कहानी जैसे इंटरफेस के साथ क्रॉस-प्लेटफ़ॉर्म एप्लिकेशन
विचार योग्य बातें
नेविगेशन के दौरान राज्य का सावधानीपूर्वक निपटान आवश्यक है
बड़े स्टोरी सेट के साथ प्रदर्शन पर प्रभाव पड़ सकता है
सीमित निर्मित विश्लेषण या ट्रैकिंग
बहुत लंबी कहानियों के लिए अनअनुकूलित
उन्नत प्रभावों के लिए बाहरी एनीमेशन लाइब्रेरी पर निर्भर करता है
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
Instagram stories like UI with rich animations and customizability.
Usage
StoryPageView requires at least three arguments: itemBuilder, pageLength, and storyLength.
/// Minimum example to explain the usage.returnScaffold(
body: StoryPageView(
itemBuilder: (context, pageIndex, storyIndex) {
returnCenter(
child: Text("Index of PageView: $pageIndex Index of story on each page: $storyIndex"),
);
},
storyLength: (pageIndex) {
return3;
},
pageLength: 4,
);
itemBuilder builds the content of each story and is called with the index of the pageView and
the index of the story on the page.
storyLength decides the length of story for each page. The example above always returns 3, but
it should depend on pageIndex.
pageLength is just the length of StoryPageView
The example above just shows 12 stories by 4 pages, which is not practical.
This one is the proper usage, extracted from example.
Once the instance is passed to StoryPageView, you can stop handle the indicator by the methods
below.
/// To pause the indicator
indicatorAnimationController.value = IndicatorAnimationCommand.pause;
/// To resume the indicator
indicatorAnimationController.value = IndicatorAnimationCommand.resume;