StoryPageView constructor
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, - void onPageChanged()?,
- Color indicatorVisitedColor = Colors.white,
- Color indicatorUnvisitedColor = Colors.grey,
- double indicatorHeight = 2,
- bool showShadow = false,
Implementation
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.onPageChanged,
this.indicatorVisitedColor = Colors.white,
this.indicatorUnvisitedColor = Colors.grey,
this.indicatorHeight = 2,
this.showShadow = false,
}) : super(key: key);