file_selector library
Classes
- FileSaveLocation
- The response from a save dialog.
- XFile
- A CrossFile is a cross-platform, simplified File abstraction.
- XTypeGroup
- A set of allowed XTypes.
Functions
-
getDirectoryPath(
{String? initialDirectory, String? confirmButtonText}) → Future< String?> - Opens a directory selection dialog and returns the path chosen by the user.
-
getDirectoryPaths(
{String? initialDirectory, String? confirmButtonText}) → Future< List< String?> > - Opens a directory selection dialog and returns a list of the paths chosen by the user.
-
getSaveLocation(
{List< XTypeGroup> acceptedTypeGroups = const <XTypeGroup>[], String? initialDirectory, String? suggestedName, String? confirmButtonText}) → Future<FileSaveLocation?> - Opens a save dialog and returns the target path chosen by the user.
-
openFile(
{List< XTypeGroup> acceptedTypeGroups = const <XTypeGroup>[], String? initialDirectory, String? confirmButtonText}) → Future<XFile?> - Opens a file selection dialog and returns the path chosen by the user.
-
openFiles(
{List< XTypeGroup> acceptedTypeGroups = const <XTypeGroup>[], String? initialDirectory, String? confirmButtonText}) → Future<List< XFile> > - Opens a file selection dialog and returns the list of paths chosen by the user.