v0.3.1flutter_stories
अपने ऐप्स में कहानियों के तंत्र को लाने वाला विजेट
69लाइक 19730-दिन डाउनलोड140Pub अंक
AndroidiOSWebmacOSWindowsLinux
अपने ऐप्स में कहानियों के तंत्र को लाने वाला Flutter विजेट
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
Widget that brings stories mechanism to your apps
Add flutter_stories to your pubspec.yaml
Full version can be found in example dir
onFlashForward callback to control app behavior in this case or when story finishesonFlashBack| property | type | required | description |
|---|---|---|---|
momentCount |
int |
true | Sets the number of moments in story |
momentDurationGetter |
(int index) => Duration |
true | Function that must return Duration for each moment |
momentBuilder |
(BuildContext context, int index) => Widget |
true | Builder that gets executed for each moment |
onFlashForward |
() => void |
false | Gets executed when user taps the right portion of the screen on the last moment in story or when story finishes playing |
onFlashBack |
() => void |
false | Gets executed when user taps the left portion of the screen on the first moment in story |
startAt |
int |
false | Defaults to 0. Sets the index of the first moment that will be displayed |
momentSwitcherFraction |
double |
false | Defaults to 0.33. `sets the ratio of left and right tappable portions of the screen: left for switching back, right for switching forward |
progressSegmentBuilder |
(BuildContext context, double progress, double gap) => Widget |
false | Defaults to Story.instagramProgressSegmentBuilder - Instagram-like minimalistic segment builder. Builder for each progress segment |
progressSegmentGap |
double |
false | Defaults to 2.0. Sets the gap between each progress segment |
progressOpacityDuration |
Duration |
false | Defaults to Duration(milliseconds: 300). Sets the duration for the progress bar show/hide animation |
topOffset |
double |
false | Defaults to MediaQuery.of(context).padding.top. Sets the top offset of progress container |
fullscreen |
bool |
false | Defaults to true. If true hides the status bar via SystemChrome service |
निर्भरता सूची 2 आइटम
{"sdk":"flutter"}{"sdk":"flutter"}उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗