StoryViewer constructor

const StoryViewer({
  1. Key? key,
  2. StoryViewerController? viewerController,
  3. UserModel? userModel,
  4. List<StoryItemModel>? stories,
  5. bool fromAnonymous = false,
  6. bool trusted = true,
  7. int initIndex = 0,
  8. dynamic onEachStoryLoadComplated({
    1. String storyID,
    })?,
  9. dynamic onEditStory({
    1. StoryViewer? viewer,
    2. StoryViewerController? viewerController,
    })?,
  10. Function? onDispose,
  11. String? heroTag,
  12. dynamic onStoryReplied({
    1. String? message,
    2. String? storyID,
    3. StoryViewerController? viewerController,
    })?,
  13. dynamic onUserTap({
    1. StoryViewerController? viewerController,
    })?,
  14. Widget? profilePicture,
  15. Customizer? customValues,
  16. List<Widget> getAdditionalLayersBeforeMedia({
    1. StoryViewer viewer,
    2. StoryViewerController viewerController,
    })?,
  17. List<Widget> getAdditionalLayersAfterMedia({
    1. StoryViewer viewer,
    2. StoryViewerController viewerController,
    })?,
  18. String? displayerUserID,
  19. Alignment? mediaAlignment,
  20. BoxFit? mediaFit,
  21. Color? backgroundColor,
  22. Color? placeholderBackground,
  23. List<Color>? placeholderBackgrounds,
  24. SystemUiOverlayStyle? systemOverlayStyle,
  25. Duration? serverTimeGap,
  26. bool willPop()?,
  27. bool hasReply = false,
  28. bool showSource = false,
  29. EdgeInsets? progressRowPadding,
  30. BorderRadius progressBorderRadius = BorderRadius.zero,
  31. Color progressColor = Colors.white,
  32. BorderRadiusGeometry? borderRadius,
  33. double progressHeight = 4,
  34. TextStyle? titleStyle,
  35. void setupCustomWidgets({
    1. StoryViewer viewer,
    2. StoryViewerController? viewerController,
    })?,
  36. EdgeInsets padding = EdgeInsets.zero,
  37. StoryRatio ratio = StoryRatio.r9_16,
  38. bool loop = false,
  39. 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);