Skip to content
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

SBBPagination: Simplification and Animation #259

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

smallTrogdor
Copy link
Contributor

This PR closes #227.

The SBBPagination was simplified: Previously, the circles were drawn using a CustomPainter and a Oval on a Canvas. This not only lead to incorrect sizes (that are hard to track in the tooling), but also to non easy animation.

The setup was simplified by using AnimatedContainer(s) that take the shape of a Circle. There is a margin added, if the Circle is not the selected one (to account for the size difference between the selected and unselected circles).

The result is simpler code and a nice easy animation 🤩 WIN - WIN 🎆

Here a short demo of the animation:

Screen.Recording.2025-01-08.at.14.57.44.mov

@smallTrogdor smallTrogdor requested a review from a team as a code owner January 8, 2025 14:12
@smallTrogdor smallTrogdor changed the title Pagination Review SBBPagination: Simplification and Animation Jan 8, 2025
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.

[Review]: Pagination review
1 participant