StoryViewer constructor
const
StoryViewer({
- Key? key,
- StoryViewerController? viewerController,
- UserModel? userModel,
- List<
StoryItemModel> ? stories, - bool fromAnonymous = false,
- bool trusted = true,
- int initIndex = 0,
- dynamic onEachStoryLoadComplated({
- String storyID,
- dynamic onEditStory({
- StoryViewer? viewer,
- StoryViewerController? viewerController,
- Function? onDispose,
- String? heroTag,
- dynamic onStoryReplied({
- String? message,
- String? storyID,
- StoryViewerController? viewerController,
- dynamic onUserTap({
- StoryViewerController? viewerController,
- Widget? profilePicture,
- Customizer? customValues,
- List<
Widget> getAdditionalLayersBeforeMedia({- StoryViewer viewer,
- StoryViewerController viewerController,
- List<
Widget> getAdditionalLayersAfterMedia({- StoryViewer viewer,
- StoryViewerController viewerController,
- String? displayerUserID,
- Alignment? mediaAlignment,
- BoxFit? mediaFit,
- Color? backgroundColor,
- Color? placeholderBackground,
- List<
Color> ? placeholderBackgrounds, - SystemUiOverlayStyle? systemOverlayStyle,
- Duration? serverTimeGap,
- bool willPop()?,
- bool hasReply = false,
- bool showSource = false,
- EdgeInsets? progressRowPadding,
- BorderRadius progressBorderRadius = BorderRadius.zero,
- Color progressColor = Colors.white,
- BorderRadiusGeometry? borderRadius,
- double progressHeight = 4,
- TextStyle? titleStyle,
- void setupCustomWidgets({
- StoryViewer viewer,
- StoryViewerController? viewerController,
- EdgeInsets padding = EdgeInsets.zero,
- StoryRatio ratio = StoryRatio.r9_16,
- bool loop = false,
- String? profileHeroTag,
Implementation
const StoryViewer(
{Key? key,
this.viewerController,
this.userModel,
this.stories,
this.fromAnonymous = false,
this.trusted = true,
this.initIndex = 0,
this.onEachStoryLoadComplated,
this.onEditStory,
this.onDispose,
this.heroTag,
this.onStoryReplied,
this.onUserTap,
this.profilePicture,
this.customValues,
this.getAdditionalLayersBeforeMedia,
this.getAdditionalLayersAfterMedia,
this.displayerUserID,
this.mediaAlignment,
this.mediaFit,
this.backgroundColor,
this.placeholderBackground,
this.placeholderBackgrounds,
this.systemOverlayStyle,
this.serverTimeGap,
this.willPop,
this.hasReply = false,
this.showSource = false,
this.progressRowPadding,
this.progressBorderRadius = BorderRadius.zero,
this.progressColor = Colors.white,
this.borderRadius,
this.progressHeight = 4,
this.titleStyle,
this.setupCustomWidgets,
this.padding = EdgeInsets.zero,
this.ratio = StoryRatio.r9_16,
this.loop = false,
this.profileHeroTag})
: super(key: key);