You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Despite the previous fix in #23 , the position validation is still causing issues with centered FABs. The current validation uses exact position comparison which is too strict for real-world scenarios.
Current behavior:
Throws exception: "Wrong gap location in AnimatedBottomNavigationBar towards FloatingActionButtonLocation => consider use GapLocation.end instead of GapLocation.center"
Even when FAB and gap location are both set to center
Expected behavior:
Should work when FAB and gap locations are properly aligned
Should handle slight position variations due to floating-point precision
Proposed solution:
Implement threshold-based position validation
Use percentage-based tolerance (10% of width)
Replace integer comparisons with float comparisons
Despite the previous fix in #23 , the position validation is still causing issues with centered FABs. The current validation uses exact position comparison which is too strict for real-world scenarios.
Current behavior:
Expected behavior:
Proposed solution:
Example code showing the issue:
The text was updated successfully, but these errors were encountered: