OpenFile.open is not showing error. Am trying to open an excel file, am not having a proper app for viewing that excel sheet. How can I show a toast message for this case.
OpenFile.open(file.path,
type: "application/vnd.ms-excel",
uti: "com.microsoft.excel.xls")
.catchError((e, stackTrace) {
print('hey error');
print(e);
return
DialogsService().showServerErrorMessageToast(
"You may not have a proper app for viewing this content.");
});
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…