From 87529201f7d3277717b29a4a463949d3b73707a9 Mon Sep 17 00:00:00 2001 From: cogwheel0 <172976095+cogwheel0@users.noreply.github.com> Date: Wed, 12 Nov 2025 11:09:43 +0530 Subject: [PATCH 1/2] feat(ui): Update drawer item styling with transparent background --- lib/features/navigation/widgets/chats_drawer.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/features/navigation/widgets/chats_drawer.dart b/lib/features/navigation/widgets/chats_drawer.dart index b977de7..b3c9e01 100644 --- a/lib/features/navigation/widgets/chats_drawer.dart +++ b/lib/features/navigation/widgets/chats_drawer.dart @@ -1771,13 +1771,14 @@ class _ConversationTile extends StatelessWidget { @override Widget build(BuildContext context) { final theme = context.conduitTheme; - final borderRadius = BorderRadius.circular(AppBorderRadius.small); + const BorderRadius borderRadius = BorderRadius.zero; final Color background = selected ? theme.buttonPrimary.withValues(alpha: 0.1) - : theme.surfaceContainer; + : Colors.transparent; final Color borderColor = selected ? theme.buttonPrimary.withValues(alpha: 0.5) - : theme.surfaceContainerHighest.withValues(alpha: 0.40); + : Colors.transparent; + final List shadow = const []; Color? overlayForStates(Set states) { From 02decd48c67bd24abee60b8cfb53ab3b56d95ebd Mon Sep 17 00:00:00 2001 From: cogwheel0 <172976095+cogwheel0@users.noreply.github.com> Date: Wed, 12 Nov 2025 13:26:29 +0530 Subject: [PATCH 2/2] feat(navigation): Conditionally apply top and bottom borders for selected chat drawer item --- lib/features/navigation/widgets/chats_drawer.dart | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/features/navigation/widgets/chats_drawer.dart b/lib/features/navigation/widgets/chats_drawer.dart index b3c9e01..60e9fea 100644 --- a/lib/features/navigation/widgets/chats_drawer.dart +++ b/lib/features/navigation/widgets/chats_drawer.dart @@ -1809,7 +1809,18 @@ class _ConversationTile extends StatelessWidget { decoration: BoxDecoration( color: background, borderRadius: borderRadius, - border: Border.all(color: borderColor, width: BorderWidth.thin), + border: selected + ? Border( + top: BorderSide( + color: borderColor, + width: BorderWidth.thin, + ), + bottom: BorderSide( + color: borderColor, + width: BorderWidth.thin, + ), + ) + : null, boxShadow: shadow, ), child: ConstrainedBox(