mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
import pica data
This commit is contained in:
@@ -265,7 +265,9 @@ Future<FileSelectResult?> selectFile({required List<String> ext}) async {
|
||||
file = FileSelectResult(xFile.path);
|
||||
}
|
||||
if (!ext.contains(file.path.split(".").last)) {
|
||||
App.rootContext.showMessage(message: "Invalid file type");
|
||||
App.rootContext.showMessage(
|
||||
message: "Invalid file type: ${file.path.split(".").last}",
|
||||
);
|
||||
return null;
|
||||
}
|
||||
return file;
|
||||
|
Reference in New Issue
Block a user