We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7eb5015 commit f625f66Copy full SHA for f625f66
lib/src/popups/attachments_popup_element_view.dart
@@ -48,10 +48,6 @@ class _AttachmentsPopupElementViewState
48
49
@override
50
Widget build(BuildContext context) {
51
- if (widget.attachmentsElement.attachments.isEmpty) {
52
- return const SizedBox.shrink();
53
- }
54
-
55
return Card(
56
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8)),
57
color:
@@ -78,6 +74,9 @@ class _AttachmentsPopupElementViewState
78
74
),
79
75
);
80
76
}
77
+ if (widget.attachmentsElement.attachments.isEmpty) {
+ return const SizedBox.shrink();
+ }
81
return Theme(
82
data: Theme.of(context).copyWith(dividerColor: Colors.transparent),
83
child: ExpansionTile(
0 commit comments