BilalShahid13 / PersistentBottomNavBar

A highly customizable persistent bottom navigation bar for Flutter
BSD 3-Clause "New" or "Revised" License
528 stars 396 forks source link

rebuilt whole widget tree for three to four times when keyboard appears and disappears #362

Open rooparam01 opened 6 months ago

rooparam01 commented 6 months ago

I've encountered an issue where the entire widget tree is being rebuilt multiple times (3-4 times) when the keyboard appears or disappears while using the persistent_bottom_nav_bar package.

Problem Description: When integrating the persistent_bottom_nav_bar package into my Flutter app, I noticed that whenever the keyboard appears or disappears, the entire widget tree gets rebuilt multiple times, causing performance issues and potential UI glitches.

Expected Behavior: The widget tree should not be rebuilt unnecessarily when the keyboard appears or disappears. Ideally, only the relevant parts of the UI affected by the keyboard should be rebuilt to maintain smooth performance and UI consistency.