LanarsInc / animated-bottom-navigation-bar-flutter

AnimatedBottomNavigationBar is a customizable widget inspired by
https://dribbble.com/shots/7134849-Simple-Tab-Bar-Animation
Other
369 stars 108 forks source link

fix: implement threshold-based FAB position validation #88

Open zeeshanahmad0201 opened 3 days ago

zeeshanahmad0201 commented 3 days ago

Fixes #87

The previous implementation used exact integer comparison which was too strict for real-world scenarios. This change introduces a threshold-based approach that:

Changes made:

Test Cases:

Note: The previous fix in #23 was a step in the right direction but didn't fully resolve the position validation issues. This PR builds on that work to provide a more robust solution.