animationSteps property
Represents the current step of the animation in the presentation.
It determines the number of times a slide can be clicked before
switching to the next slide in the enum. By default, one click
on a slide will directly switch to the next slide, sicne animationSteps
is set to 1.
The animationIndex property, in combination with the animationSteps
property of presentationController, indicates which item will be
animated/shown next during the presentation.
It keeps track of the progress of the animation, indicating the current step in the sequence.
An example usage can be seen in the DownsidesSlide.
The enum member PagesOfPresentation.downsides has 6 animationSteps.
Clicking on the slide increments the animationIndex by one.
Example:
- Downsides title appears:
animationIndexis 0. - Really bad subtitle appears:
animationIndexis 1. - Annoying bullet point appears:
animationIndexis 2. - Boring bullet point appears:
animationIndexis 3. - Lazy bullet point appears:
animationIndexis 4. - It's not Flutter bullet point appears:
animationIndexis 5. - When
animationIndexreaches 6, it switches to the next slide.
Implementation
final int animationSteps;