Browse Source

Misaligned icon in detail view #1386 - Fixed (#1433)

Ashil 1 năm trước cách đây
mục cha
commit
0f68f7566c
2 tập tin đã thay đổi với 7 bổ sung1 xóa
  1. 1 0
      Gemfile.lock
  2. 6 1
      lib/ui/viewer/file/file_app_bar.dart

+ 1 - 0
Gemfile.lock

@@ -211,6 +211,7 @@ GEM
 
 PLATFORMS
   arm64-darwin-21
+  x86_64-linux
 
 DEPENDENCIES
   fastlane

+ 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(FavoriteWidget(widget.file));
+        actions.add(
+          Padding(
+            padding: const EdgeInsets.symmetric(vertical: 6, horizontal: 7.5),
+            child: FavoriteWidget(widget.file),
+        ),
+      );
     }
     if (!isFileUploaded) {
       actions.add(