浏览代码

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

Ashil 1 年之前
父节点
当前提交
0f68f7566c
共有 2 个文件被更改,包括 7 次插入1 次删除
  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(