advstory 0.2.1
advstory: ^0.2.1 copied to clipboard
An advanced, complete story viewer. Has support for images, videos, custom widget contents, gestures, interceptors, listeners, manipulators and much more.
0.0.1 #
- 🎉 first release!
0.0.1+1 #
- Readme image source change
0.0.1+2 #
- Readme change, again...
0.1.0 #
This version has breaking changes.
- All
*storyhas been renamed*contentand all*clusterhas been renamed*story:ClusterasStoryclusterBuilderasstoryBuilderclusterCountasstoryCountstoryBuilderascontentBuilderImageStoryasImageContentVideoStoryasVideoContent- And related controller methods...
TrayStylehas been renamed asTrayListStylehideBarsparameter moved toAdvStoryStylefromAdvStorywidget.- Removed
storyIndexandclusterIndexfromAdvStoryControllerand addedposition. - A brand new logic has been created to give more flexibility to custom story contents.
- Removed
WidgetStoryand implemented 2 new way to create custom story contents:StoryContentis an abstract class that gives the full power ofAdvStoryto the developer.StoryContentis super class of built-in types, this means you can use any required method by extending this class.SimpleCustomContentis a custom story content using resources that can be loaded simultaneously. Eg text, asset image...
- Added
timeoutanderrorBuilderparameters to video content and image content. - Added a parameter to set duration for each story except
VideoContent. You can now set duration for every single story content! - Removed
setVolumemethod fromAdvStoryController. You can now extendStoryContentto create customized controls. - Added two new parameters to
AdvStorywidget to disable preloading. - Default loading screen has changed. Shimmer effect was causing a lag.
- Fixed a bug that caused the story to not start when the first content was custom content.
- Improved documentation and example project.
0.2.0 #
This version has breaking changes
Breaking changes
StoryEvent.contentSkipreplaced withStoryEvent.nextContentandStoryEvent.previousContent.StoryEvent.storySkipreplaced withStoryEvent.nextStoryandStoryEvent.previousStory.IndicatorStyle'spaddingparameter type changed fromdoubletoEdgeInsets.
New Features
- Added interceptor support, you can now capture and block events and call custom callbacks before they happen.
- Decoupled tray list and player, #3.
AdvStory.playerconstructor allows to creating story view without tray list. Also this constructor doesn't force to full screen story view. Story view expands itself to fit it's parent. Story size, shape, position, opening animation and more can be adjusted. - Created
AdvStoryPlayerControllerforAdvStory.player. This controller provides additional methods to open and close story view.
Bug fixes
AdvStoryController'sjumpTomethod exception fixed. See #15 for more information.- Story view close on +Y drag fixed.
- Content skip on continuous taps fixed.
Enhancements
- Allowed to changing
storyCountby setting state to make story pagination possible, #14. - Removed unnecessary
AnimatedBuilders.
0.2.1 #
Bug fixes
- Fixed tray animation not start issue.
- Fixed story stop on page change cancel.
- Fixed story indicator progress on next story page.