adv_image_picker 0.2.1

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

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.2.1

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

0.0.7 #

  • Dependencies error fixed

0.1.0 #

  • Dependencies to stable channel Flutter

0.1.1 #

  • Result Null Checking fixes

0.1.2 #

  • Avoiding AndroidX

0.2.0 #

  • Upgrade to AndroidX

0.2.0+1 #

  • Upgrade to AndroidX

0.2.0+2 #

  • AndroidX Upgrade fixes

0.2.0+3 #

  • AndroidX Upgrade fixes (dexter dependency)

0.2.1 #

  • Add image resize parameter

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.2.1

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.2.1 Apr 25, 2019 Go to the documentation of adv_image_picker 0.2.1 Download adv_image_picker 0.2.1 archive
0.2.0+3 Mar 20, 2019 Go to the documentation of adv_image_picker 0.2.0+3 Download adv_image_picker 0.2.0+3 archive
0.2.0+2 Mar 20, 2019 Go to the documentation of adv_image_picker 0.2.0+2 Download adv_image_picker 0.2.0+2 archive
0.2.0+1 Mar 19, 2019 Go to the documentation of adv_image_picker 0.2.0+1 Download adv_image_picker 0.2.0+1 archive
0.2.0 Mar 19, 2019 Go to the documentation of adv_image_picker 0.2.0 Download adv_image_picker 0.2.0 archive
0.1.2 Mar 19, 2019 Go to the documentation of adv_image_picker 0.1.2 Download adv_image_picker 0.1.2 archive
0.1.1 Mar 6, 2019 Go to the documentation of adv_image_picker 0.1.1 Download adv_image_picker 0.1.1 archive
0.1.0 Feb 8, 2019 Go to the documentation of adv_image_picker 0.1.0 Download adv_image_picker 0.1.0 archive
0.0.7 Jan 29, 2019 Go to the documentation of adv_image_picker 0.0.7 Download adv_image_picker 0.0.7 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

All 15 versions...

Popularity:
Describes how popular the package is relative to other packages. [more]
72
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
0
Overall:
Weighted score of the above. [more]
66
Learn more about scoring.

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

  • Dart: 2.2.0
  • pana: 0.12.14
  • Flutter: 1.4.7

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health issues and suggestions

Document public APIs. (-0.14 points)

98 out of 101 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

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/adv_image_picker.dart.

Run flutter format to format lib/adv_image_picker.dart.

Format lib/pages/camera.dart.

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

Fix additional 3 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/pages/gallery.dart (Run flutter format to format lib/pages/gallery.dart.)
  • lib/pages/result.dart (Run flutter format to format lib/pages/result.dart.)
  • lib/plugins/adv_image_picker_plugin.dart (Run flutter format to format lib/plugins/adv_image_picker_plugin.dart.)

Maintenance issues and suggestions

Prefer published dependencies. (-100 points)

The source code in a git repository is mutable and could disappear.

Use constrained dependencies. (-20 points)

The pubspec.yaml contains 1 dependency without version constraints. Specify version ranges for the following dependencies: camera.

The package description is too short. (-17 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
camera 0.4.2
flutter 0.0.0
image ^2.0.7 2.0.7
path_provider ^0.5.0+1 0.5.0+1
photo_view ^0.2.2 0.2.5 0.3.1
pit_components ^0.2.6+2 0.2.8+1
Transitive dependencies
after_layout 1.0.7
archive 2.0.8
args 1.5.1
charcode 1.1.2
collection 1.14.11
convert 2.1.1
crypto 2.0.6
flutter_range_slider 1.1.0
intl 0.15.8
meta 1.1.6 1.1.7
path 1.6.2
petitparser 2.2.1
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
xml 3.4.1