- 🎉 first release!
- Readme image source change
- Readme change, again...
This version has breaking changes.
- All
*story
has been renamed*content
and all*cluster
has been renamed*story
:Cluster
asStory
clusterBuilder
asstoryBuilder
clusterCount
asstoryCount
storyBuilder
ascontentBuilder
ImageStory
asImageContent
VideoStory
asVideoContent
- And related controller methods...
TrayStyle
has been renamed asTrayListStyle
hideBars
parameter moved toAdvStoryStyle
fromAdvStory
widget.- Removed
storyIndex
andclusterIndex
fromAdvStoryController
and addedposition
. - A brand new logic has been created to give more flexibility to custom story contents.
- Removed
WidgetStory
and implemented 2 new way to create custom story contents:StoryContent
is an abstract class that gives the full power ofAdvStory
to the developer.StoryContent
is super class of built-in types, this means you can use any required method by extending this class.SimpleCustomContent
is a custom story content using resources that can be loaded simultaneously. Eg text, asset image...
- Added
timeout
anderrorBuilder
parameters 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
setVolume
method fromAdvStoryController
. You can now extendStoryContent
to create customized controls. - Added two new parameters to
AdvStory
widget 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.
This version has breaking changes
Breaking changes
StoryEvent.contentSkip
replaced withStoryEvent.nextContent
andStoryEvent.previousContent
.StoryEvent.storySkip
replaced withStoryEvent.nextStory
andStoryEvent.previousStory
.IndicatorStyle
'spadding
parameter type changed fromdouble
toEdgeInsets
.
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.player
constructor 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
AdvStoryPlayerController
forAdvStory.player
. This controller provides additional methods to open and close story view.
Bug fixes
AdvStoryController
'sjumpTo
method exception fixed. See #15 for more information.- Story view close on +Y drag fixed.
- Content skip on continuous taps fixed.
Enhancements
- Allowed to changing
storyCount
by setting state to make story pagination possible, #14. - Removed unnecessary
AnimatedBuilder
s.
Bug fixes
- Fixed tray animation not start issue.
- Fixed story stop on page change cancel.
- Fixed story indicator progress on next story page.