Procházet zdrojové kódy

Updated with suggested change

Naveenchand před 1 rokem
rodič
revize
99a59faf6a
1 změnil soubory, kde provedl 6 přidání a 1 odebrání
  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
     // only show fav option for files owned by the user
     if (isOwnedByUser && !isFileHidden && isFileUploaded) {
     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) {
     if (!isFileUploaded) {
       actions.add(
       actions.add(