AdvStory class
An advanced, complete story viewer. Has support for images, videos, custom widget contents, gestures, interceptors, listeners, manipulators and much more. Designed for performance.
Quite easy & Quite advanced
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- AdvStory
Constructors
- AdvStory({required int storyCount, required StoryBuilder storyBuilder, required TrayBuilder? trayBuilder, AdvStoryController? controller, bool buildStoryOnTrayScroll = true, bool preloadStory = true, bool preloadContent = true, AdvStoryStyle style = const AdvStoryStyle(), Key? key})
-
Creates a story tray list using trayBuilder. When a tray tapped calls
storyBuilder and starts story flow.
const
- AdvStory.player({Key? key, required int storyCount, required StoryBuilder storyBuilder, bool preloadContent = true, bool preloadStory = true, AdvStoryStyle style = const AdvStoryStyle(), required AdvStoryPlayerController controller})
-
Creates a story tray list using trayBuilder. When a tray tapped calls
storyBuilder and starts story flow.
const
Properties
- buildStoryOnTrayScroll → bool
-
Sets whether stories are build when tray list is scrolled or the tray is
tapped.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasTrays → bool
-
Determines if should build
TrayView
orStoryView
.final - key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- preloadContent → bool
-
Sets whether content preload is enabled or not.
final
- preloadStory → bool
-
Sets whether story preload is enabled.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- storyBuilder → StoryBuilder
-
The builder function that will be called to build a Story.
final
- storyController → AdvStoryController?
-
A controller for manipulating flow and listening user interactions.
final
- storyCount → int
-
The number of Storys to build and display.
final
- style → AdvStoryStyle
-
Styles for the
AdvStory
. Provides customization options forStoryIndicator
, LoadingStyle, TrayListStyle and other more general options.final - trayBuilder → TrayBuilder?
-
Builds a widget that shown in list for every story.
Most probably story owner's profile picture.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< AdvStory> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of
DiagnosticsNode
objects describing this node's children.inherited -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited