@@ -98,10 +98,9 @@ class _AttachmentsPopupElementViewState
9898 tilePadding: const EdgeInsets .symmetric (horizontal: 10 ),
9999 childrenPadding: const EdgeInsets .all (10 ),
100100 title: _PopupElementHeader (
101- title:
102- widget.attachmentsElement.title.isEmpty
103- ? 'Attachments'
104- : widget.attachmentsElement.title,
101+ title: widget.attachmentsElement.title.isEmpty
102+ ? 'Attachments'
103+ : widget.attachmentsElement.title,
105104 description: widget.attachmentsElement.description,
106105 ),
107106 initiallyExpanded: isExpanded,
@@ -112,15 +111,12 @@ class _AttachmentsPopupElementViewState
112111 children: [
113112 SizedBox (
114113 height: 200 ,
115- child:
116- widget.attachmentsElement.attachments.isEmpty
117- ? const Center (
118- child: Text ('No attachments available' ),
119- )
120- : widget.attachmentsElement.displayType ==
121- PopupAttachmentsDisplayType .preview
122- ? _buildGridView ()
123- : _buildListView (),
114+ child: widget.attachmentsElement.attachments.isEmpty
115+ ? const Center (child: Text ('No attachments available' ))
116+ : widget.attachmentsElement.displayType ==
117+ PopupAttachmentsDisplayType .preview
118+ ? _buildGridView ()
119+ : _buildListView (),
124120 ),
125121 ],
126122 ),
@@ -218,8 +214,8 @@ class _PopupAttachmentViewInGalleryState
218214 if (attachment.contentType.startsWith ('image' ) && mounted) {
219215 await showDialog (
220216 context: context,
221- builder:
222- (context) => _DetailsScreenImageDialog (filePath: filePath! ),
217+ builder: (context) =>
218+ _DetailsScreenImageDialog (filePath: filePath! ),
223219 );
224220 } else {
225221 await OpenFile .open (filePath, type: attachment.contentType);
@@ -333,10 +329,9 @@ class _PopupAttachmentViewInListState
333329 context,
334330 ).textTheme.labelSmall? .copyWith (color: Colors .grey),
335331 ),
336- trailing:
337- filePath == null
338- ? (downloadFuture == null
339- ? IconButton (
332+ trailing: filePath == null
333+ ? (downloadFuture == null
334+ ? IconButton (
340335 icon: Icon (
341336 Icons .download,
342337 color: Theme .of (context).colorScheme.primary,
@@ -347,7 +342,7 @@ class _PopupAttachmentViewInListState
347342 });
348343 },
349344 )
350- : FutureBuilder <void >(
345+ : FutureBuilder <void >(
351346 future: downloadFuture,
352347 builder: (context, snapshot) {
353348 if (snapshot.connectionState == ConnectionState .waiting) {
@@ -373,7 +368,7 @@ class _PopupAttachmentViewInListState
373368 }
374369 },
375370 ))
376- : const Icon (Icons .check, color: Colors .green),
371+ : const Icon (Icons .check, color: Colors .green),
377372 onTap: () {
378373 if (filePath == null ) {
379374 if (downloadFuture == null ) {
@@ -385,8 +380,8 @@ class _PopupAttachmentViewInListState
385380 if (widget.popupAttachment.contentType.startsWith ('image' )) {
386381 showDialog (
387382 context: context,
388- builder:
389- (context) => _DetailsScreenImageDialog (filePath: filePath! ),
383+ builder: (context) =>
384+ _DetailsScreenImageDialog (filePath: filePath! ),
390385 );
391386 } else {
392387 OpenFile .open (filePath, type: widget.popupAttachment.contentType);
0 commit comments