adv_image_picker 0.0.6

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • new66

Advanced Image Picker

This is our custom Image Picker that enabling you to multi pick image with our Custom UI

Note: This plugin is still under development, and some Components might not be available yet or still has so many bugs.

Installation

First, add adv_image_picker as a dependency in your pubspec.yaml file.

adv_image_picker: ^0.0.6

Example

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;
  List<File> files = [];

  void _pickImage() async {
    files.addAll(await AdvImagePicker.pickImagesToFile(context));

    setState(() {

    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: GridView.count(crossAxisCount: 4,
          children: files.map((File f) => Image.file(f, fit: BoxFit.cover,)).toList(),
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _pickImage,
        child: Icon(Icons.add),
      ),
    );
  }
}

0.0.1

  • Initial Release

0.0.2

  • Toggle to switch enable multiple select and enable only Camera / Gallery added

0.0.3

  • Bug Fixed

0.0.4

  • Bug Fixed

0.0.5

  • Bug Fixed

0.0.6

  • Android FileProvider error fix

example/README.md

import 'dart:io';

import 'package:adv_image_picker/adv_image_picker.dart';
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
 // This widget is the root of your application.
 @override
 Widget build(BuildContext context) {
   return MaterialApp(
     title: 'Flutter Demo',
     theme: ThemeData(
       primarySwatch: Colors.blue,
     ),
     home: MyHomePage(title: 'Image Picker Demo Home Page'),
   );
 }
}

class MyHomePage extends StatefulWidget {
 MyHomePage({Key key, this.title}) : super(key: key);

 final String title;

 @override
 _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
 int _counter = 0;
 List<File> files = [];

 void _pickImage() async {
   files.addAll(await AdvImagePicker.pickImagesToFile(context));

   setState(() {

   });
 }

 @override
 Widget build(BuildContext context) {
   return Scaffold(
     appBar: AppBar(
       title: Text(widget.title),
     ),
     body: Center(
       child: GridView.count(crossAxisCount: 4,
         children: files.map((File f) => Image.file(f, fit: BoxFit.cover,)).toList(),
       ),
     ),
     floatingActionButton: FloatingActionButton(
       onPressed: _pickImage,
       child: Icon(Icons.add),
     ),
   );
 }
}

Use this package as a library

1. Depend on it

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


dependencies:
  adv_image_picker: ^0.0.6

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter packages get

Alternatively, your editor might support flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:adv_image_picker/adv_image_picker.dart';
  
Version Uploaded Documentation Archive
0.0.6 Jan 16, 2019 Go to the documentation of adv_image_picker 0.0.6 Download adv_image_picker 0.0.6 archive
0.0.5 Jan 16, 2019 Go to the documentation of adv_image_picker 0.0.5 Download adv_image_picker 0.0.5 archive
0.0.4 Jan 11, 2019 Go to the documentation of adv_image_picker 0.0.4 Download adv_image_picker 0.0.4 archive
0.0.3 Jan 8, 2019 Go to the documentation of adv_image_picker 0.0.3 Download adv_image_picker 0.0.3 archive
0.0.2 Jan 8, 2019 Go to the documentation of adv_image_picker 0.0.2 Download adv_image_picker 0.0.2 archive
0.0.1 Jan 7, 2019 Go to the documentation of adv_image_picker 0.0.1 Download adv_image_picker 0.0.1 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
44
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
70
Overall:
Weighted score of the above. [more]
66
Learn more about scoring.

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

  • Dart: 2.1.0
  • pana: 0.12.10
  • Flutter: 1.1.7

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health issues and suggestions

Document public APIs. (-0.11 points)

95 out of 98 API elements (library, class, field or method) have no adequate dartdoc content. Good documentation improves code readability and discoverability through search.

Fix lib/models/album_item.dart. (-1 points)

Analysis of lib/models/album_item.dart reported 2 hints:

line 35 col 16: Avoid wrapping fields in getters and setters just to be "safe".

line 39 col 7: Avoid wrapping fields in getters and setters just to be "safe".

Format lib/pages/camera.dart.

Run flutter format to format lib/pages/camera.dart.

Format lib/pages/gallery.dart.

Run flutter format to format lib/pages/gallery.dart.

Format lib/pages/result.dart.

Run flutter format to format lib/pages/result.dart.

Maintenance suggestions

The description is too short. (-20 points)

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Package is pre-v0.1 release. (-10 points)

While there is nothing inherently wrong with versions of 0.0.*, it usually means that the author is still experimenting with the general direction of the API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
camera ^0.2.6 0.2.9+1
flutter 0.0.0
path_provider ^0.4.1 0.4.1
photo_view ^0.1.2 0.1.3
pit_components ^0.0.35 0.0.36+1
Transitive dependencies
after_layout 1.0.7
collection 1.14.11
flutter_range_slider 1.0.1
intl 0.15.7
meta 1.1.6 1.1.7
path 1.6.2
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8