Skip to content

Commit f625f66

Browse files
authored
Let attachments future complete (#67)
1 parent 7eb5015 commit f625f66

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/src/popups/attachments_popup_element_view.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ class _AttachmentsPopupElementViewState
4848

4949
@override
5050
Widget build(BuildContext context) {
51-
if (widget.attachmentsElement.attachments.isEmpty) {
52-
return const SizedBox.shrink();
53-
}
54-
5551
return Card(
5652
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8)),
5753
color:
@@ -78,6 +74,9 @@ class _AttachmentsPopupElementViewState
7874
),
7975
);
8076
}
77+
if (widget.attachmentsElement.attachments.isEmpty) {
78+
return const SizedBox.shrink();
79+
}
8180
return Theme(
8281
data: Theme.of(context).copyWith(dividerColor: Colors.transparent),
8382
child: ExpansionTile(

0 commit comments

Comments
 (0)