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

Prevented primary TabBar flicker when changing tabs (Android) #827

Merged
merged 2 commits into from
Oct 19, 2024

Conversation

grahammendick
Copy link
Owner

Updating the MenuItems caused flickering when changing tabs so avoided updating when TabBarItem props haven't changed. Also changed from Absolute to RelativeSizeSpan so that font resizing is smooth when changing tabs on old Material theme.

Thanks to @afkcodes for identifying and working through the problem.

Updating the Menu items caused flickering when changing tabs. Only updated if something has changed
The font size on the tab changes on old material theme when changing tab. So can't use an absolute font size otherwise text size jumps back to large after shrinking when tab deactivated. Switched to relative font size so that the custom font size is applied in proportion. Took 14 as the font size of tab when selected (checked by debugging RelativeSizeSpan) although can probably change via theming
@grahammendick grahammendick merged commit 88a7645 into master Oct 19, 2024
@grahammendick grahammendick deleted the tabbar-flicker branch October 19, 2024 08:17
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