feat: add speech_to_text, optimize navigation transitions, improve bottom nav rebuild performance, and fix home screen padding.

This commit is contained in:
pradeepkumar
2026-04-11 02:53:25 +05:30
parent 1abcc2416f
commit e93c979400
4 changed files with 58 additions and 13 deletions

View File

@@ -82,8 +82,11 @@ class AppBottomNavBar extends ConsumerWidget {
Builder(builder: (context) {
final authState = ref.watch(authProvider);
final isAuth = authState.status == AuthStatus.authenticated;
// Only watch the unreadCount field — not the entire messaging
// state. This prevents the nav bar from rebuilding on every
// typing event, new message, or status change.
final msgUnread = isAuth
? ref.watch(messagingProvider).unreadCount
? ref.watch(messagingProvider.select((s) => s.unreadCount))
: 0;
return _NavItem(
svgPath: 'assets/icons/nav_messages_icon.svg',