dataview 0.4.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 75

Dataview #

pub package

A file explorer for the application's documents directory. Can upload files and directories to a server.

Screenshot

Usage #

In a router:

   import 'package:dataview/dataview.dart';

   final routes = {
    // ...
    '/dataview': (BuildContext context) => new DataviewPage(),
    };

In a link:

   import 'package:dataview/dataview.dart';

   // ...
   RaisedButton(
    onPressed: () {
     Navigator.of(context).push(MaterialPageRoute(
      builder: (context) {
       return DataviewPage("/");
      },
    ));
   },
   child: Text("View application data"))

Upload files and directories #

Specify the uploadTo parameter to be able to upload to a server:

   DataviewPage(uploadTo: "http://192.168.1.2:8082/upload")

A default basic development Go server is provided for local usage. A compiled version for Linux is attached to the Github release. To run it:

   ./devserver_linux64

It will receive the files in the same directory as the running binary

Changelog #

0.4.0 #

  • Api change: the required positional parameter for path has been changed for an optional named path parameter
  • Refactor using the Filex package
  • Update dependencies
  • Upgrade code for flutter_slidable api change
  • Use pedantic for analysis options

0.3.1 #

  • Upgrade to path_provider ^0.5.0+1

0.3.0 #

  • Downgrade to path_provider 0.4.0
  • Improve error management
  • Use more strict linting rules
  • Fix error router initialization

0.2.0 #

Add the upload feature for files and directories

0.1.1 #

Remove old code and improve package description

0.1.0 #

Initial release

example/README.md

example #

A new Flutter project.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  dataview: ^0.4.0

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:dataview/dataview.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
61
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
70
Overall:
Weighted score of the above. [more]
75
Learn more about scoring.

We analyzed this package on Dec 5, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.6.1
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.6

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Maintenance issues and suggestions

Support latest dependencies. (-30 points)

The version constraint in pubspec.yaml does not support the latest published versions for 3 dependencies (dio, err, filex).

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.2.2 <3.0.0
archive ^2.0.10 2.0.11
body_parser ^1.1.1 1.1.1
cupertino_icons ^0.1.2 0.1.3
dio ^2.1.13 2.2.2 3.0.7
err ^0.7.3 0.7.3 0.8.0
filesize ^1.0.2 1.0.4
filex ^0.1.0 0.1.0 0.2.2
flutter 0.0.0
flutter_slidable ^0.5.3 0.5.4
fluttertoast ^3.1.0 3.1.3
path ^1.6.2 1.6.4
path_provider ^1.1.2 1.4.5
pedantic ^1.6.0 1.9.0
Transitive dependencies
args 1.5.2
charcode 1.1.2
collection 1.14.11 1.14.12
convert 2.1.1
cookie_jar 1.0.1
crypto 2.1.3
dart2_constant 1.0.2+dart2
flushbar 1.9.1
http_parser 3.1.3
http_server 0.9.8+3
meta 1.1.7 1.1.8
mime 0.9.6+3
open_file 2.1.1
platform 2.2.1
sky_engine 0.0.99
source_span 1.5.5
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test