diff --git a/lib/Editor.dart b/lib/Editor.dart index b2b0854..b40c755 100644 --- a/lib/Editor.dart +++ b/lib/Editor.dart @@ -94,7 +94,7 @@ class EditorState extends State { if (result != null) { // Do something with the selected file path print('Selected file path: $filePath'); - filePath = result!.files.first.path; + filePath = result.files.first.path; } else { // User canceled the picker print('File selection canceled.');