feat(navigation): Conditionally add spacing in chats drawer when folders are enabled
This commit is contained in:
@@ -445,7 +445,8 @@ class _ChatsDrawerState extends ConsumerState<ChatsDrawer> {
|
||||
],
|
||||
),
|
||||
],
|
||||
const SliverToBoxAdapter(child: SizedBox(height: Spacing.md)),
|
||||
if (foldersEnabled)
|
||||
const SliverToBoxAdapter(child: SizedBox(height: Spacing.md)),
|
||||
|
||||
if (regular.isNotEmpty) ...[
|
||||
SliverPadding(
|
||||
@@ -693,9 +694,11 @@ class _ChatsDrawerState extends ConsumerState<ChatsDrawer> {
|
||||
slivers.addAll(folderSlivers);
|
||||
}
|
||||
|
||||
slivers.add(
|
||||
const SliverToBoxAdapter(child: SizedBox(height: Spacing.md)),
|
||||
);
|
||||
if (foldersEnabled) {
|
||||
slivers.add(
|
||||
const SliverToBoxAdapter(child: SizedBox(height: Spacing.md)),
|
||||
);
|
||||
}
|
||||
|
||||
if (regular.isNotEmpty) {
|
||||
slivers.add(
|
||||
|
||||
Reference in New Issue
Block a user