memory_info
0.1.0, released 5 weeks ago by an unverified publisher
Get device RAM and disk storage information on Android and iOS.
What it does
A Flutter plugin to query device memory and disk space metrics, along with streaming system memory pressure events. It retrieves values like total, free, and used RAM/ROM in megabytes for both Android and iOS platforms.
AI-written summary of version 0.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to monitor available RAM or disk space in your Flutter app.
- You want to listen to system memory pressure events to clear caches before the app is killed.
Skip it when
- You need detailed hardware information beyond RAM and ROM.
- Your target platform is neither Android nor iOS.
Strengths
- Provides both memory and disk space usage metrics.
- Includes a memory pressure event stream for handling low-memory warnings.
- Values are collected off the main thread.
Weaknesses
- Some memory and disk fields return null depending on the OS or if run on a simulator.
- Android 14+ restricts some trim memory levels, making certain warning events rare.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Shipped with an iOS privacy manifest; no special manual setup steps are documented.
import 'package:memory_info/memory_info.dart';
final Memory memory = await MemoryInfoPlugin().memoryInfo;
print('Total: ${memory.totalMem} MB');
print('Free: ${memory.freeMem} MB');Alternatives
Packages that do the same job and could replace memory_info.
- system_info_plus
A flutter plugin to get device RAM size.
73Compare - carrier_info
Gets network type, carrier codes, and SIM info on Android and iOS.
86Compare - platform_device_id
Get unique device IDs across Android, iOS, Windows, Linux, macOS, and Web.
50Compare - installed_apps
List installed apps on Android, get app details, launch, uninstall, and open settings.
82Compare