You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
need bookmark for file:///Volumes/Macintosh%20HD/Users/caodingjie/Desktop/ms/
flutter: Error creating bookmark: PlatformException(UnexpectedError, Error while creating bookmark Error Domain=NSCocoaErrorDomain Code=256 "Failed to retrieve app-scope key" UserInfo={NSDebugDescription=Failed to retrieve app-scope key} for file:///Volumes/Macintosh%20HD/Users/caodingjie/Desktop/ms/, null, null)
need bookmark for file:///Volumes/Macintosh%20HD/Users/caodingjie/Desktop/ms/
flutter: Error creating bookmark: PlatformException(UnexpectedError, Error while creating bookmark Error Domain=NSCocoaErrorDomain Code=256 "Failed to retrieve app-scope key" UserInfo={NSDebugDescription=Failed to retrieve app-scope key} for file:///Volumes/Macintosh%20HD/Users/caodingjie/Desktop/ms/, null, null)
IconButton(
icon: Icon(Icons.add),
onPressed: () async {
String? selectedDirectory = await FilePicker.platform.getDirectoryPath();
if (selectedDirectory != null) {
final secureBookmarks = SecureBookmarks();
final directory = Directory(selectedDirectory);
try {
final bookmark = await secureBookmarks.bookmark(directory);
await setUserDefaultOfLine1(bookmark, selectedDirectory);
setState(() {
_filmsFolder = selectedDirectory;
_isLoading = true;
});
await _loadVideoFiles();
setState(() {
_isLoading = false;
});
} catch (e) {
print('Error creating bookmark: $e');
}
}
},
),
This code works maybe a week ago, during this week I just did some UI works and now had this error.
The text was updated successfully, but these errors were encountered: