Sfoglia il codice sorgente

Updated with suggested change

Naveenchand 1 anno fa
parent
commit
99a59faf6a
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. 6 1
      lib/ui/viewer/file/file_app_bar.dart

+ 6 - 1
lib/ui/viewer/file/file_app_bar.dart

@@ -124,7 +124,12 @@ class FileAppBarState extends State<FileAppBar> {
     }
     // only show fav option for files owned by the user
     if (isOwnedByUser && !isFileHidden && isFileUploaded) {
-        actions.add(IconButton(icon: FavoriteWidget(widget.file), onPressed: null));
+        actions.add(
+          Padding(
+          padding: const EdgeInsets.symmetric(vertical: 6, horizontal: 7.5),
+          child: FavoriteWidget(widget.file),
+        ),
+      );
     }
     if (!isFileUploaded) {
       actions.add(