Merge pull request #660 from ente-io/change-threshold-of-small-screen

change threshold for small screen
This commit is contained in:
Ashil 2022-11-21 17:21:40 +05:30 committed by GitHub
commit f6093ecaa6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,7 +126,7 @@ class _StorageCardWidgetState extends State<StorageCardWidget> {
final totalStorageInBytes = userDetails.getTotalStorage();
final freeStorageInBytes = totalStorageInBytes - usedStorageInBytes;
final isMobileScreenSmall = MediaQuery.of(context).size.width <= 360;
final isMobileScreenSmall = MediaQuery.of(context).size.width <= 336;
final shouldShowFreeSpaceInMBs = freeStorageInBytes < hundredMBinBytes;
final shouldShowFreeSpaceInTBs = freeStorageInBytes >= oneTBinBytes;
final shouldShowUsedStorageInTBs = usedStorageInBytes >= oneTBinBytes;