Explorar el Código

Merge pull request #814 from ente-io/overlay_icon_sizes

Update the size of bottom-overlay-icons
Vishnu Mohandas hace 2 años
padre
commit
738ca61699
Se han modificado 1 ficheros con 5 adiciones y 2 borrados
  1. 5 2
      lib/ui/viewer/file/file_icons_widget.dart

+ 5 - 2
lib/ui/viewer/file/file_icons_widget.dart

@@ -23,7 +23,10 @@ class UnSyncedIcon extends StatelessWidget {
 
   @override
   Widget build(BuildContext context) {
-    return const _BottomLeftOverlayIcon(Icons.cloud_off_outlined);
+    return const _BottomLeftOverlayIcon(
+      Icons.cloud_off_outlined,
+      baseSize: 18,
+    );
   }
 }
 
@@ -186,7 +189,7 @@ class _BottomLeftOverlayIcon extends StatelessWidget {
 
         if (constraints.hasBoundedWidth) {
           final w = constraints.maxWidth;
-          if (w > 120) {
+          if (w > 125) {
             size = 24;
           } else if (w < 75) {
             inset = 3;