prepare_local_chromium function
Implementation
Future<bool> prepare_local_chromium() async {
final downloadUrl = await getChromiumDownloadUrl();
//download the zip file
final download = await downloadFile(downloadUrl, LOCAL_DOWNLOAD_SUBDIR);
if (!download) {
Show.error("could not", "download", "edge browser");
return false;
}
//unzip the file
final unzip = await unzipFile(LOCAL_DOWNLOAD_PATH, LOCAL_DOWNLOAD_SUBDIR);
if (!unzip) {
Show.error("could not", "unzip", "edge browser");
return false;
}
return true;
}