An introduction slider has some screens that can use to describe your application. You can describe your application's title, description, logo, etc. It comes with several features.
Here is an example of how to implement IntroductionSlider in a Flutter application.
Typically this will be an AssetImage or a NetworkImage
fit:
BoxFit
Fill the target box by distorting the source's aspect ratio.
colorFilter:
ColorFilter
A color filter is a function that takes two colors, and outputs one color.
opacity:
double
Used to set the filterQuality of the image.
Scroll / Gesture control
A page can be scrolled horizontally or vertically. The default scroll direction is horizontal. You can change the scroll direction by setting the scrollDirection property.
You can also control the introduction slider by gestures. You can set the physics property to NeverScrollableScrollPhysics() to disable the gesture slide.
Done has some more properties which are used to redirect to the target page with an animation effect. animationDuration is used to set the duration of the animation and curve is used to set the animation curve.
Many of the ButtonStyle properties are [MaterialStateProperty] objects which resolve to different values depending on the button's state.
curve:
Curve
A collection of common animation easing curves.
animationDuration:
Duration
The animation lasts for the given duration and follows the given curve. The returned [Future] resolves when the animation completes.
Next
Next has some more properties which are used to redirect to the next slide page with an animation effect. animationDuration is used to set the duration of the animation and curve is used to set the animation curve.
Many of the ButtonStyle properties are [MaterialStateProperty] objects which resolve to different values depending on the button's state.
curve:
Curve
A collection of common animation easing curves.
animationDuration:
Duration
The animation lasts for the given duration and follows the given curve. The returned [Future] resolves when the animation completes.
Back
Back has some more properties which are used to redirect to the previous slide page with an animation effect. animationDuration is used to set the duration of the animation and curve is used to set the animation curve.