llllALONSOlllll
llllALONSOlllll

Reputation: 13

Flutter: How can I get the RAM and Storage of a device with my app?

I need to get this kind of info trough my app. Doing a research I found the package device_info_plus, but that package don't show the info that I need, like RAM, storage, processor.

Upvotes: 1

Views: 1435

Answers (1)

Rohith Nambiar
Rohith Nambiar

Reputation: 3730

You can use the package called disk_space which gets you the total amount of storage available on your device

import 'package:disk_space/disk_space.dart';

void getDiskSpaceInfo() async{
  print(await DiskSpace.getFreeDiskSpace);
  print(await DiskSpace.getTotalDiskSpace);
}

Upvotes: 2

Related Questions