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:
animationIndex
is 0. - Really bad subtitle appears:
animationIndex
is 1. - Annoying bullet point appears:
animationIndex
is 2. - Boring bullet point appears:
animationIndex
is 3. - Lazy bullet point appears:
animationIndex
is 4. - It's not Flutter bullet point appears:
animationIndex
is 5. - When
animationIndex
reaches 6, it switches to the next slide.
Implementation
final int animationSteps;