feat: add speech_to_text, optimize navigation transitions, improve bottom nav rebuild performance, and fix home screen padding.
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user