Explorar el Código

fix: live photo indicator getting cut at the bottom

ashilkn hace 1 año
padre
commit
2a6ec2528d
Se han modificado 1 ficheros con 17 adiciones y 14 borrados
  1. 17 14
      lib/ui/viewer/file/file_app_bar.dart

+ 17 - 14
lib/ui/viewer/file/file_app_bar.dart

@@ -85,7 +85,7 @@ class FileAppBarState extends State<FileAppBar> {
           );
         },
       ),
-      Size.fromHeight(Platform.isAndroid ? 80 : 96),
+      Size.fromHeight(Platform.isAndroid ? 84 : 96),
     );
   }
 
@@ -104,30 +104,33 @@ class FileAppBarState extends State<FileAppBar> {
               ?.isHidden() ??
           false;
     }
-      if (kDebugMode) {
-        actions.add(
-          Text(
-            widget.file.generatedID?.toString() ?? 'null',
-            style: const TextStyle(color: Colors.white),
-          ),
-        );
-      }
+    if (kDebugMode) {
+      actions.add(
+        Text(
+          widget.file.generatedID?.toString() ?? 'null',
+          style: const TextStyle(color: Colors.white),
+        ),
+      );
+    }
     if (widget.file.isLiveOrMotionPhoto) {
       actions.add(
         IconButton(
           icon: const Icon(Icons.album_outlined),
           onPressed: () {
-            showShortToast(context, S.of(context).pressAndHoldToPlayVideoDetailed);
+            showShortToast(
+              context,
+              S.of(context).pressAndHoldToPlayVideoDetailed,
+            );
           },
         ),
       );
     }
     // only show fav option for files owned by the user
     if (isOwnedByUser && !isFileHidden && isFileUploaded) {
-        actions.add(
-          Padding(
-            padding: const EdgeInsets.symmetric(vertical: 6, horizontal: 7.5),
-            child: FavoriteWidget(widget.file),
+      actions.add(
+        Padding(
+          padding: const EdgeInsets.symmetric(vertical: 6, horizontal: 7.5),
+          child: FavoriteWidget(widget.file),
         ),
       );
     }