advstory 0.2.1 copy "advstory: ^0.2.1" to clipboard
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 *story has been renamed *content and all *cluster has been renamed *story:
    • Cluster as Story
    • clusterBuilder as storyBuilder
    • clusterCount as storyCount
    • storyBuilder as contentBuilder
    • ImageStory as ImageContent
    • VideoStory as VideoContent
    • And related controller methods...
  • TrayStyle has been renamed as TrayListStyle
  • hideBars parameter moved to AdvStoryStyle from AdvStory widget.
  • Removed storyIndex and clusterIndex from AdvStoryController and added position.
  • 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 of AdvStory 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 and errorBuilder 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 from AdvStoryController. You can now extend StoryContent 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.

0.2.0 #

This version has breaking changes

Breaking changes

  • StoryEvent.contentSkip replaced with StoryEvent.nextContent and StoryEvent.previousContent.
  • StoryEvent.storySkip replaced with StoryEvent.nextStory and StoryEvent.previousStory.
  • IndicatorStyle's padding parameter type changed from double to EdgeInsets.

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 for AdvStory.player. This controller provides additional methods to open and close story view.

Bug fixes

  • AdvStoryController's jumpTo 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 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.
111
likes
130
pub points
90%
popularity

Publisher

verified publishersourcekod.com

An advanced, complete story viewer. Has support for images, videos, custom widget contents, gestures, interceptors, listeners, manipulators and much more.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_cache_manager, shimmer, video_player

More

Packages that depend on advstory