सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
Story_time एक Flutter पैकेज है जो अपने मूल समकक्ष की तुलना में चिकनी एनीमेशन और बढ़ी हुई कस्टमाइज़ेबिलिटी के साथ इंस्टाग्राम-शैली की कहानियों के इंटरफ़ेस प्रदान करता है। यह विकासकर्ताओं को स्वाइप नेविगेशन, टाइमर और धाराप्रवाह मीडिया समर्थन के साथ इंटरैक्टिव, पूर्ण-स्क्रीन कहानी अनुभव बनाने की अनुमति देता है, जो कई प्लेटफॉर्मों पर काम करता है। पैकेज Android, iOS, Web, macOS, Windows और Linux का समर्थन करता है, जो आकर्षक कहानी-जैसी सामग्री प्रदर्शन की आवश्यकता वाले क्रॉस-प्लेटफॉर्म एप्लिकेशन के लिए आदर्श है। व्यापक कस्टमाइज़ेशन विकल्पों के साथ, यह विभिन्न डिज़ाइन आवश्यकताओं के अनुरूप दिखावट और व्यवहार को समायोजित करने की अनुमति देता है।
उपयोग
इंटरैक्टिव स्टोरी फीड्स
सोशल मीडिया ऐप फीचर्स
उपयोगकर्ता ओनबोर्डिंग ट्यूटोरियल
सामग्री हाइलाइट रील्स
आकर्षक मार्केटिंग अभियान
मुख्य विशेषताएँ
धामधूमदार एनीमेशन
स्वाइप नेविगेशन
प्लेटफॉर्म के अनुकूल समर्थन
बहुत अनुकूलनीय यूआई
समय-आधारित कहानी प्रगति
मीडिया से भरपूर कहानी कार्ड
इनके लिए उपयुक्त
मोबाइल और वेब ऐप्स
सोशल नेटवर्किंग फीचर्स
ऑनबोर्डिंग अनुभव
प्रमोशन और प्रचार
रचनात्मक सामग्री प्लेटफॉर्म
विचार योग्य बातें
अवस्था प्रबंधन के सावधानीपूर्वक निपटान की आवश्यकता होती है
भारी मीडिया के साथ प्रदर्शन पर प्रभाव पड़ सकता है
कस्टम स्टाइलिंग के लिए Flutter विजेट्स के साथ परिचित होना आवश्यक है
मूल इंस्टालेशन के अलावा सीमित डॉक्यूमेंटेशन
बहुत लंबे कहानी के क्रम के लिए अनअनुकूलित
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
story_time
A fork of story. Instagram stories like UI with rich animations and even more customizability than the original package.
Usage
StoryPageView needs 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 is necessary to build the content of story. It is called with index of pageView and 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 the argument 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.
gestureItemBuilder is the builder for the widgets which needs gesture actions.
In this case, IconButton to close the page is in the callback.
You CANNOT place the gesture widgets in itemBuilder because it is covered and disabled by default story gestures.
onPageLimitReached is called when the very last story is finished.
It is recommended to use data model with two layers. In this case, UserModel which has the list of StoryModel
/// Example Data ModelclassUserModel{
UserModel(this.stories, this.userName, this.imageUrl);
finalList<StoryModel> stories;
finalString userName;
finalString imageUrl;
}
classStoryModel{
StoryModel(this.imageUrl);
finalString imageUrl;
}
Controlling animations
My point of forking the original package was to add the ability to
control the duration of a specific index of a story. Look at the example to see how to use it if you are interested.
Callbacks for pausing and unpausing stories
The package also supports adding callbacks for pausing and unpausing a story to the StoryPageView widget. See the example project for more
details.
Callbacks for moving to a different page
The package also supports adding callbacks for going a page backwards and for going a page forwards to the StoryPageView widget. See the example project for more details.
Callbacks for moving to a different story
The package also supports adding a callback for whenever the story index changes to the StoryPageView widget. See the example project for more details.
Tips
This package is still under development. If you have any requests or questions, please ask on github