From c99682d6a3bab57e52239bb8b706565dbf58e76e Mon Sep 17 00:00:00 2001 From: cogwheel0 <172976095+cogwheel0@users.noreply.github.com> Date: Wed, 8 Oct 2025 22:37:51 +0530 Subject: [PATCH] refactor: adjust drawer behavior and improve code readability in chat page - Changed drawerDragStartBehavior from `DragStartBehavior.start` to `DragStartBehavior.down` for better user experience. - Reduced drawerEdgeDragWidth from 75% to 50% of the screen width to enhance accessibility. - Improved code formatting for better readability in the model selector sheet. --- lib/features/chat/views/chat_page.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/features/chat/views/chat_page.dart b/lib/features/chat/views/chat_page.dart index 2c5dbc7..0caeef2 100644 --- a/lib/features/chat/views/chat_page.dart +++ b/lib/features/chat/views/chat_page.dart @@ -1179,8 +1179,8 @@ class _ChatPageState extends ConsumerState { backgroundColor: context.conduitTheme.surfaceBackground, // Left navigation drawer with draggable edge open (native, finger-following) drawerEnableOpenDragGesture: true, - drawerDragStartBehavior: DragStartBehavior.start, - drawerEdgeDragWidth: MediaQuery.of(context).size.width * 0.75, + drawerDragStartBehavior: DragStartBehavior.down, + drawerEdgeDragWidth: MediaQuery.of(context).size.width * 0.5, drawerScrimColor: context.colorTokens.overlayStrong, drawer: Drawer( width: (MediaQuery.of(context).size.width * 0.80).clamp( @@ -2038,7 +2038,8 @@ class _ModelSelectorSheetState extends ConsumerState<_ModelSelectorSheet> { maxLines: 1, overflow: TextOverflow.ellipsis, ), - if (model.isMultimodal || _modelSupportsReasoning(model)) ...[ + if (model.isMultimodal || + _modelSupportsReasoning(model)) ...[ const SizedBox(height: Spacing.xs), Row( children: [