StoryPageView constructor
const
StoryPageView({
- Key? key,
- required StoryItemBuilder itemBuilder,
- required StoryConfigFunction storyLength,
- required int pageLength,
- StoryItemBuilder? gestureItemBuilder,
- StoryConfigFunction? initialStoryIndex,
- int initialPage = 0,
- VoidCallback? onPageLimitReached,
- Duration indicatorDuration = const Duration(seconds: 5),
- EdgeInsetsGeometry indicatorPadding = const EdgeInsets.symmetric(vertical: 32, horizontal: 8),
- Color backgroundColor = Colors.black,
- ValueNotifier<
IndicatorAnimationCommand> ? indicatorAnimationController, - VoidCallback? onStoryPaused,
- VoidCallback? onStoryUnpaused,
- void onPageBack(
- int newPageIndex
- void onPageForward(
- int newPageIndex
- void onStoryIndexChanged(
- int newStoryIndex
Implementation
const StoryPageView({
Key? key,
required this.itemBuilder,
required this.storyLength,
required this.pageLength,
this.gestureItemBuilder,
this.initialStoryIndex,
this.initialPage = 0,
this.onPageLimitReached,
this.indicatorDuration = const Duration(seconds: 5),
this.indicatorPadding =
const EdgeInsets.symmetric(vertical: 32, horizontal: 8),
this.backgroundColor = Colors.black,
this.indicatorAnimationController,
this.onStoryPaused,
this.onStoryUnpaused,
this.onPageBack,
this.onPageForward,
this.onStoryIndexChanged,
}) : super(key: key);