diff --git a/lib/screens/chat/conversations_list_screen.dart b/lib/screens/chat/conversations_list_screen.dart index 5367c45..c8183ef 100644 --- a/lib/screens/chat/conversations_list_screen.dart +++ b/lib/screens/chat/conversations_list_screen.dart @@ -52,18 +52,30 @@ class _ConversationsListScreenState children: [ SizedBox( width: 300, - child: _buildListPane(convsAsync, isWide), + child: Column( + children: [ + Expanded(child: _buildListPane(convsAsync, isWide)), + const Divider(height: 1), + ListTile( + leading: const Icon(Icons.add), + title: const Text('New conversation'), + onTap: () => _newConversation(isWide), + ), + ], + ), ), const VerticalDivider(width: 1), Expanded(child: _buildDetailPane()), ], ) : _buildListPane(convsAsync, isWide), - floatingActionButton: FloatingActionButton( - heroTag: 'chat_fab', - onPressed: () => _newConversation(isWide), - child: const Icon(Icons.add), - ), + floatingActionButton: isWide + ? null + : FloatingActionButton( + heroTag: 'chat_fab', + onPressed: () => _newConversation(isWide), + child: const Icon(Icons.add), + ), ); } diff --git a/lib/screens/notes/notes_list_screen.dart b/lib/screens/notes/notes_list_screen.dart index 18981e0..34a9652 100644 --- a/lib/screens/notes/notes_list_screen.dart +++ b/lib/screens/notes/notes_list_screen.dart @@ -35,18 +35,30 @@ class _NotesListScreenState extends ConsumerState { children: [ SizedBox( width: 300, - child: _buildListPane(notesAsync, isWide), + child: Column( + children: [ + Expanded(child: _buildListPane(notesAsync, isWide)), + const Divider(height: 1), + ListTile( + leading: const Icon(Icons.add), + title: const Text('New note'), + onTap: () => context.push(Routes.noteNew), + ), + ], + ), ), const VerticalDivider(width: 1), Expanded(child: _buildDetailPane()), ], ) : _buildListPane(notesAsync, isWide), - floatingActionButton: FloatingActionButton( - heroTag: 'notes_fab', - onPressed: () => context.push(Routes.noteNew), - child: const Icon(Icons.add), - ), + floatingActionButton: isWide + ? null + : FloatingActionButton( + heroTag: 'notes_fab', + onPressed: () => context.push(Routes.noteNew), + child: const Icon(Icons.add), + ), ); }