This pull request addresses Issue #323, where I propose adding a new enum, SlideDirection, to the RotateAnimatedText widget in the Animated-Text-Kit Flutter package. This enhancement allows users to specify the direction of slide-in and slide-out animations for text, providing greater flexibility and customization options.
Changes Made
Introduced the SlideDirection enum at the top of the RotateAnimatedText file, enabling users to choose the slide direction.
Modified the RotateAnimatedText constructor to accept a slideDirection property, allowing users to specify the desired slide direction when creating an instance of RotateAnimatedText.
Updated the initAnimation method to use the slideDirection property to determine the slide direction for both slide-in and slide-out animations.
Ensured that the default behavior matches the current behavior for existing users who don't specify a slideDirection.
Testing Done
Tested the new slideDirection property with various values to ensure that the slide animations behave as expected.
Ensured that existing functionality remains unaffected by this change.
Summary
This pull request addresses Issue #323, where I propose adding a new enum,
SlideDirection
, to theRotateAnimatedText
widget in the Animated-Text-Kit Flutter package. This enhancement allows users to specify the direction of slide-in and slide-out animations for text, providing greater flexibility and customization options.Changes Made
SlideDirection
enum at the top of theRotateAnimatedText
file, enabling users to choose the slide direction.RotateAnimatedText
constructor to accept aslideDirection
property, allowing users to specify the desired slide direction when creating an instance ofRotateAnimatedText
.initAnimation
method to use theslideDirection
property to determine the slide direction for both slide-in and slide-out animations.slideDirection
.Testing Done
slideDirection
property with various values to ensure that the slide animations behave as expected.Screenshots
Working on it.
Closes Issues
Closes #323
Checklist
Notes
Please tell if anything else needs to be added - Like flutter documentation, etc.