Get file size in MB
static Future<double> getFileSizeMB(File file) async { final bytes = await file.length(); return bytes / (1024 * 1024); }