{"id":24650816,"url":"https://github.com/correct-syntax/get_storage_info","last_synced_at":"2026-04-29T20:34:43.304Z","repository":{"id":227688578,"uuid":"771836622","full_name":"Correct-Syntax/get_storage_info","owner":"Correct-Syntax","description":"A Flutter plugin to get information about storage on Android","archived":false,"fork":false,"pushed_at":"2025-09-02T04:28:27.000Z","size":124,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T21:49:57.886Z","etag":null,"topics":["android","android-storage","dart","flutter","flutter-package","flutter-plugin"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/get_storage_info","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Correct-Syntax.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-03-14T03:20:59.000Z","updated_at":"2025-09-02T04:28:31.000Z","dependencies_parsed_at":"2024-03-18T01:26:46.105Z","dependency_job_id":"e767f266-9a0b-47b9-8472-22c79c6ca702","html_url":"https://github.com/Correct-Syntax/get_storage_info","commit_stats":null,"previous_names":["correct-syntax/get_storage_info"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Correct-Syntax/get_storage_info","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Correct-Syntax%2Fget_storage_info","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Correct-Syntax%2Fget_storage_info/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Correct-Syntax%2Fget_storage_info/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Correct-Syntax%2Fget_storage_info/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Correct-Syntax","download_url":"https://codeload.github.com/Correct-Syntax/get_storage_info/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Correct-Syntax%2Fget_storage_info/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32443563,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T20:22:27.477Z","status":"ssl_error","status_checked_at":"2026-04-29T20:22:26.507Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","android-storage","dart","flutter","flutter-package","flutter-plugin"],"created_at":"2025-01-25T18:16:44.312Z","updated_at":"2026-04-29T20:34:43.287Z","avatar_url":"https://github.com/Correct-Syntax.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# get_storage_info\n\nA Flutter plugin to get information about storage on Android. Get free, used, and total internal and external (SD card) storage space, and more.\n\nThis is a friendly fork of [storage_info](https://github.com/aakashkondhalkar/storage_info) with additional useful methods and improvements.\n\n\n## Installing\n\nAdd ``get_storage_info`` to your pubspec.yaml:\n```yaml\ndependencies:\n  get_storage_info: ^0.4.0\n```\n\n## Usage\n\n### Importing\n\n```dart\nimport 'package:get_storage_info/get_storage_info.dart';\n```\n\n### Using the methods\n\nAll methods can be statically accessed via the ``GetStorageInfo`` class.\n\n#### Get internal storage info\n\n```dart\n\n// Get internal storage total space in bytes, MB and GB\nawait GetStorageInfo.getStorageTotalSpace; // return int\nawait GetStorageInfo.getStorageTotalSpaceInMB; // return double\nawait GetStorageInfo.getStorageTotalSpaceInGB; // return double\n\n// Get internal storage free space in bytes, MB and GB\nawait GetStorageInfo.getStorageFreeSpace; // return int\nawait GetStorageInfo.getStorageFreeSpaceInMB; // return double\nawait GetStorageInfo.getStorageFreeSpaceInGB; // return double\n\n// Get internal storage used space in bytes, MB and GB\nawait GetStorageInfo.getStorageUsedSpace; // return int\nawait GetStorageInfo.getStorageUsedSpaceInMB; // return double\nawait GetStorageInfo.getStorageUsedSpaceInGB; // return double\n```\n\n#### Get external (SD card) storage info\n\n```dart\n// Get external storage total space in bytes, MB, and GB\nreturn await GetStorageInfo.getExternalStorageTotalSpace; // return int\nreturn await GetStorageInfo.getExternalStorageTotalSpaceInMB; // return double\nreturn await GetStorageInfo.getExternalStorageTotalSpaceInGB; // return double\n\n// Get external storage free space in bytes, MB, and GB\nreturn await GetStorageInfo.getExternalStorageFreeSpace; // return int\nreturn await GetStorageInfo.getExternalStorageFreeSpaceInMB; // return double\nreturn await GetStorageInfo.getExternalStorageFreeSpaceInGB; // return double\n\n// Get external storage used space in bytes, MB, and GB\nreturn await GetStorageInfo.getExternalStorageUsedSpace; // return int\nreturn await GetStorageInfo.getExternalStorageUsedSpaceInMB; // return double\nreturn await GetStorageInfo.getExternalStorageUsedSpaceInGB; // return double\n```\n\n#### Get whether the external storage is mounted and writable\n\n```dart\nbool isWritable = await GetStorageInfo.isExternalStorageWritable; // return bool\n\u003e\u003e true\n```\n\n#### Get the size of a given directory in MB\n\n```dart\nString directoryPath = '/storage/emulated/0/Movies/MyFolder/';\ndouble directorySize = await GetStorageInfo.getSizeOfDirectoryInMB(directoryPath);\n\u003e\u003e 12.98790\n```\n\n#### Get storage type from path\n\n```dart\nString path = '/storage/emulated/0/Android';\nDeviceStorageType storageType = GetStorageInfo.getStorageTypeFromPath(path);\n\u003e\u003e DeviceStorageType.internal\n```\n\n#### Get storage usage value\n\nGet a value from 0.0 to 1.0 representing the storage usage. Useful for storage indicators.\n\n```dart\ndouble storageTotal = await GetStorageInfo.getExternalStorageTotalSpaceInGB;\ndouble storageUsed = await GetStorageInfo.getExternalStorageUsedSpaceInGB;\n\ndouble storageUsageValue = GetStorageInfo.getStorageUsageValue(storageUsed, storageTotal);\n\u003e\u003e 0.95\n```\n\n#### Get whether the storage type is low on storage\n\nThis method calls the above methods internally to get the storage info, so if you already get the info in your code it may be more optimized to use ``getIsStorageBelowThreshold`` instead.\n\n```dart\nDeviceStorageType storageType = DeviceStorageType.internal;\n\n// Optionally set the threshold. The default is 500MB.\ndouble threshold = 600.0;\n\nbool isLowOnStorage = await GetStorageInfo.getIsLowOnStorage(storageType, threshold);\n\u003e\u003e false\n```\n\n#### Get whether the storage is below the low storage threshold\n\n```dart\ndouble threshold = 600.0; // in MB\ndouble storageFree = await GetStorageInfo.getExternalStorageFreeSpaceInMB;\n\nbool isBelowThreshold = GetStorageInfo.getIsStorageBelowThreshold(storageFree, threshold);\n\u003e\u003e true\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorrect-syntax%2Fget_storage_info","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcorrect-syntax%2Fget_storage_info","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorrect-syntax%2Fget_storage_info/lists"}