jsaver 0.0.5 jsaver: ^0.0.5 copied to clipboard
Save Files Plugin By Just Codes Developers, JSaver is a plugin that save files in internal or external directories for Android , Windows and Web.
jsaver #
JSaver: is a plugin that save files in internal or external directories for android , web and Windows.
Features #
- Save From File.
- Save From Uint8List
- Save From Path
Usage #
To Use jsaver
#Android Minimal SDK VERSION
minSdkVersion 19
#Web The Only Method Works For Web.
final _jSaverPlugin = JSaver();
Future<String> getFromData(Uint8List data, String fileName)async{
//Note: File Name Must Contain extension
final value = await _jSaverPlugin.saveFromData(data: data, name: fileName);
return value;
}
Simple Usage #
final _jSaverPlugin = JSaver();
Future<String> getFromPath(String path)async{
final value = await _jSaverPlugin.saveFromPath(path: path);
return value;
}
Future<String> getFromData(Uint8List data, String fileName)async{
//Note: File Name Must Contain extension
final value = await _jSaverPlugin.saveFromData(data: data, name: fileName);
return value;
}
Future<String> getFromFile(File file)async{
final value = await _jSaverPlugin.saveFromFile(file: file);
return value;
}
Additional information #
Provided By Just Codes Developers