Skip to content

Instantly share code, notes, and snippets.

@nbnD
Created August 13, 2022 05:53
Show Gist options
  • Save nbnD/d2ea2afc7a53f8a9384afd9720792e00 to your computer and use it in GitHub Desktop.
Save nbnD/d2ea2afc7a53f8a9384afd9720792e00 to your computer and use it in GitHub Desktop.
Story view
StoryView(
storyItems: [
for (int i = widget.index; i < widget.model.length; i++)
StoryItem.inlineImage(
imageFit: BoxFit.contain,
caption: const Text(
"Caption Here",
style: TextStyle(
color: Colors.white,
backgroundColor: Colors.black,
fontSize: 17),
),
url: widget.model[i],
controller: storyController)
],
onStoryShow: (s) {},
onComplete: () {},
progressPosition: ProgressPosition.top,
repeat: false,
inline: true,
controller: storyController),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment