Add i18n to iOS

This commit is contained in:
2024-01-26 11:17:18 +08:00
parent 5e1cfb16ea
commit e6363ff4fb
6 changed files with 32 additions and 7 deletions

View File

@@ -158,7 +158,7 @@ class FilePickerDelegate: NSObject, UIDocumentPickerDelegate {
} else {
url.path
}
if !FileManager.default.createFile(atPath: uPath, contents: nil) {
if !FileManager.default.createFile(atPath: uPath, contents: Data.init()) {
result(FlutterError(code: "FAILED_TO_CREATE_FILE", message: nil, details: nil))
return
}