Flutter FTP Client #
This plugin provide an simple API to FTP access and manager files, Common-net-3.6 based. Currently only available for android platform.
Getting Started #
Config host #
First provide the host config
FlutterFtpClient.configHost(host, username, password, port);
Config path #
Config the path and filename from download.
FlutterFtpClient.configFilePath(path, filename, extension, uploadPath: uploadPath);
Download File #
The method getFile execute the download of file and return your filename. Use the filename to manipulate the file in your app.
String filename = await FlutterFtpClient.getFile;
Upload File #
The method uploadFile execute the upload of file to server.
// Set destination path configFilePath(path, filename, extension: extension, uploadPath: uploadPath); /// Execute o upload file return FlutterFtpClient.uploadFile;
- Creation and implementation of download method.
- Implementation of upload method.
- Implementation of plugin Documentation.
- FIX - Documentation.
- FIX - pubspec.yaml.
- FIX - GithubLink.
- IMPROVMENT - Documentation.
- Fix - Platform suport pubspec.
- IMPROVEMENT - Formatting the dart code and adding more information to the pubspec description.
- FEATURE - implemente exemple/README.md demonstration use.
Flutter FTP Client Example #
Demonstrates how to use the flutter_ftp_client plugin.
Getting Started #
- 1 - Provide the host credentials.
- 2 - Provide the file path and extention.
- 3 - Download or upload file using FlutterFtpClient.getFile and FlutterFtpClient.uploadFile methods.
Download demonstration #
Demonstrates how to download files using Flutter FTP Client.
/// set credentials FlutterFtpClient.configHost("126.96.36.199", "user", "password", "21"); /// set file path and extention. FlutterFtpClient.configFilePath("/", "products","txt"); /// download file and get the filename filename = await FlutterFtpClient.getFile;
Upload demonstration #
Demonstrates how to upload files using Flutter FTP Client.
/// set credentials. FlutterFtpClient.configHost("188.8.131.52", "user", "password", "21"); /// set file path and extention. FlutterFtpClient.configFilePath("/", "order", "txt", uploadPath: "/destineFolder"); /// upload file. filename = await FlutterFtpClient.uploadFile;
For more information access Flutter FTP Client on GitHub
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: flutter_ftp_client: ^1.0.9
2. Install it
You can install packages from the command line:
$ flutter pub get
Alternatively, your editor might support
flutter pub get.
Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Feb 27, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.7.1
- pana: 0.13.5
- Flutter: 1.12.13+hotfix.8