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

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

No files matched your search

+4 -1
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',