diff --git a/lib/features/chat/views/chat_page.dart b/lib/features/chat/views/chat_page.dart index d1d85c3..6ec045c 100644 --- a/lib/features/chat/views/chat_page.dart +++ b/lib/features/chat/views/chat_page.dart @@ -1217,7 +1217,7 @@ class _ChatPageState extends ConsumerState { icon: Icon( Platform.isIOS ? CupertinoIcons.bubble_left - : Icons.chat_bubble_outline, + : Icons.add_comment, color: context.conduitTheme.textPrimary, size: IconSize.appBar, ), diff --git a/lib/features/navigation/widgets/chats_drawer.dart b/lib/features/navigation/widgets/chats_drawer.dart index fc9bb7c..35dfd67 100644 --- a/lib/features/navigation/widgets/chats_drawer.dart +++ b/lib/features/navigation/widgets/chats_drawer.dart @@ -71,13 +71,30 @@ class _ChatsDrawerState extends ConsumerState { child: Column( crossAxisAlignment: CrossAxisAlignment.stretch, children: [ - _buildHeader(context), Padding( padding: const EdgeInsets.symmetric( horizontal: Spacing.md, vertical: Spacing.sm, ), - child: _buildSearchField(context), + child: Row( + children: [ + Expanded(child: _buildSearchField(context)), + const SizedBox(width: Spacing.sm), + IconButton( + icon: Icon( + Platform.isIOS + ? CupertinoIcons.bubble_left + : Icons.add_comment, + color: theme.iconPrimary, + ), + onPressed: () { + chat.startNewChat(ref); + if (mounted) Navigator.of(context).maybePop(); + }, + tooltip: AppLocalizations.of(context)!.newChat, + ), + ], + ), ), Expanded(child: _buildConversationList(context)), const Divider(height: 1), @@ -88,42 +105,6 @@ class _ChatsDrawerState extends ConsumerState { ); } - Widget _buildHeader(BuildContext context) { - final theme = context.conduitTheme; - return Padding( - padding: const EdgeInsets.fromLTRB(Spacing.md, Spacing.md, Spacing.md, 0), - child: Stack( - alignment: Alignment.center, - children: [ - // Centered title (no leading icon) - Text( - AppLocalizations.of(context)!.chats, - style: AppTypography.headlineSmallStyle.copyWith( - color: theme.textPrimary, - fontWeight: FontWeight.w600, - ), - textAlign: TextAlign.center, - ), - // Right-aligned new chat action - Positioned( - right: 0, - child: IconButton( - icon: Icon( - Platform.isIOS ? CupertinoIcons.plus : Icons.add_rounded, - color: theme.iconPrimary, - ), - onPressed: () { - chat.startNewChat(ref); - if (mounted) Navigator.of(context).maybePop(); - }, - tooltip: AppLocalizations.of(context)!.newChat, - ), - ), - ], - ), - ); - } - Widget _buildSearchField(BuildContext context) { final theme = context.conduitTheme; return Container( @@ -1040,12 +1021,6 @@ class _ChatsDrawerState extends ConsumerState { fontWeight: FontWeight.w600, ), ), - Text( - 'You', - style: AppTypography.bodySmallStyle.copyWith( - color: theme.textSecondary, - ), - ), ], ), ),