Migration Steps
1
Package names changed
The package names have been renamed to match the new API.Check the Installation page to learn more about the different modules.
The
filekit-core
package still exists but it only contains the core functionality of the library like PlatformFile without any dialogs capabilities.2
Renamed methods
Some methods have been renamed to match the new API. Also, some arguments may have been changed but the behavior is the same.Read more about the new API in the FileKit Dialogs documentation.
3
Changes in the saving file feature
FileKit.openFileSaver()
does not accept taking bytes
as parameter. Now, it only returns the path where the user has chosen to save the file.
We can now use the returned PlatformFile
to save the bytes to the file.download()
function that can be used to download a file from the web.