From f3a88dc3faef707bdf89dc71cdbe7be70c8adaab Mon Sep 17 00:00:00 2001 From: Aman Raj Singh Mourya Date: Sat, 5 Apr 2025 19:57:14 +0530 Subject: [PATCH] [mob][photos] changes: adjust thumbnail size and gap for 3x3 layout --- .../device/device_folders_vertical_grid_view.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mobile/lib/ui/collections/device/device_folders_vertical_grid_view.dart b/mobile/lib/ui/collections/device/device_folders_vertical_grid_view.dart index d42bad8dd5..0e5a19edf6 100644 --- a/mobile/lib/ui/collections/device/device_folders_vertical_grid_view.dart +++ b/mobile/lib/ui/collections/device/device_folders_vertical_grid_view.dart @@ -66,8 +66,8 @@ class _DeviceFolderVerticalGridViewBodyState Width changes dynamically with screen width such that we can fit 2 in one row. Keep the width integral (center the albums to distribute excess pixels) */ - static const maxThumbnailWidth = 224.0; - static const fixedGapBetweenAlbum = 8.0; + static const maxThumbnailWidth = 170.0; + static const fixedGapBetweenAlbum = 2.0; static const minGapForHorizontalPadding = 8.0; @override @@ -103,7 +103,7 @@ class _DeviceFolderVerticalGridViewBodyState if (snapshot.hasData) { final double screenWidth = MediaQuery.of(context).size.width; final int albumsCountInOneRow = - max(screenWidth ~/ maxThumbnailWidth, 2); + max(screenWidth ~/ maxThumbnailWidth, 3); final double gapBetweenAlbums = (albumsCountInOneRow - 1) * fixedGapBetweenAlbum; final double gapOnSizeOfAlbums = minGapForHorizontalPadding +