adv_image_picker 0.0.3

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

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

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

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

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.2 May 15, 2019 Go to the documentation of adv_image_picker 0.2.2 Download adv_image_picker 0.2.2 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

All 16 versions...

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

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

  • Dart: 2.3.0
  • pana: 0.12.15
  • Flutter: 1.5.8

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 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/pages/camera.dart.

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

Format lib/pages/result.dart.

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

Maintenance suggestions

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.

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

While nothing is inherently wrong with versions of 0.0.*, it might mean 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 0.5.0
flutter 0.0.0
path_provider ^0.4.1 0.4.1 1.0.0
photo_view ^0.1.2 0.1.3 0.3.3
pit_components ^0.0.33+3 0.0.36+2 0.2.9
Transitive dependencies
after_layout 1.0.7
collection 1.14.11
flutter_range_slider 1.2.0
intl 0.15.8
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