Skip to content

Feat : Add timed auto-sliding feature for intro pages #108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

berhili098
Copy link

@berhili098 berhili098 commented Jan 20, 2025

This pull request introduces an auto-slide feature to the AnimatedPageDragger class and adds a new AutoSlideController class to manage auto-slide settings. The changes primarily focus on enabling, controlling, and managing the auto-slide functionality.

Enhancements to AnimatedPageDragger:

  • Added a new autoSlideDuration parameter to the constructor with a default value of 3 seconds.
  • Introduced logic to start an auto-slide timer after animation completes, if auto-slide is enabled.
  • Added new fields _autoSlideTimer and _autoSlideEnabled to manage the auto-slide state.
  • Implemented methods startAutoSlide, stopAutoSlide, and _startAutoSlideTimer to control the auto-slide functionality.
  • Ensured the auto-slide timer is canceled when the AnimatedPageDragger is disposed of.

Introduction of AutoSlideController:

  • Created a new AutoSlideController class to manage the auto-slide state and duration, including methods to start, stop, and toggle auto-slide, and set the slide duration.

Taking this Request into consideration

- Changed task registration method in `build.gradle` for cleaner syntax.
- Updated `minSdkVersion` in `app/build.gradle` to use a variable for better maintainability.
- Added support for FFI plugins in `generated_plugins.cmake` for both Linux and Windows platforms.
- Enhanced `AnimatedPageDragger` class to include auto-slide functionality with configurable duration.

These changes improve build configuration and enhance the user experience with new animation features.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant