flutter_ftp_client 1.0.9

  • Readme
  • Changelog
  • Example
  • Installing
  • 79

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;

1.0.0 #

  • Creation and implementation of download method.

1.0.1 #

  • Implementation of upload method.

1.0.2 #

  • Implementation of plugin Documentation.

1.0.3 #

  • FIX - Documentation.

1.0.4 #

  • FIX - pubspec.yaml.

1.0.5 #

  • FIX - GithubLink.

1.0.6 #

  • IMPROVMENT - Documentation.

1.0.7 #

  • Fix - Platform suport pubspec.

1.0.8 #

  • IMPROVEMENT - Formatting the dart code and adding more information to the pubspec description.

1.0.9 #

  • 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("", "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("", "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:

  flutter_ftp_client: ^1.0.9

2. Install it

You can install packages from the command line:

with Flutter:

$ 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:

import 'package:flutter_ftp_client/flutter_ftp_client.dart';
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]
Learn more about scoring.

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


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies