image_gallery 1.2.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 90

For help getting started with Flutter, view our online documentation.


image_gallery #

Flutter plugin to showing all the images from the storage in Android and iOS .

Usage #

 Future<void> loadImageList() async {
    List allImageTemp;
      allImageTemp = await FlutterGallaryPlugin.getAllImages;

    setState(() {
      this.allImage = allImageTemp;

1.2.0 #

  • Bug Fixed

0.1.1 #

  • Version Modified

0.0.1 #

  • Initial Release


import 'dart:collection';

import 'package:flutter/material.dart';
import 'dart:io';
import 'dart:async';

import 'package:flutter/services.dart';
import 'package:image_gallery/image_gallery.dart';

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

class MyApp extends StatefulWidget {
  _MyAppState createState() => new _MyAppState();

class _MyAppState extends State<MyApp> {
  Map<dynamic, dynamic> allImageInfo = new HashMap();
  List allImage=new  List();
  List allNameList=new  List();

  void initState() {

  Future<void> loadImageList() async {
    Map<dynamic, dynamic>  allImageTemp;
      allImageTemp = await FlutterGallaryPlugin.getAllImages;
      print(" call $allImageTemp.length");

    setState(() {
      this.allImage = allImageTemp['URIList'] as List;
      this.allNameList = allImageTemp['DISPLAY_NAME'] as List;

  Widget build(BuildContext context) {
    return new MaterialApp(
      debugShowCheckedModeBanner: false,
      home: new Scaffold(
        appBar: new AppBar(
          title: const Text('Image Gallery'),
        body: _buildGrid()

  Widget _buildGrid() {
    return GridView.extent(
        maxCrossAxisExtent: 150.0,
        // padding: const EdgeInsets.all(4.0),
        mainAxisSpacing: 4.0,
        crossAxisSpacing: 4.0,
        children: _buildGridTileList(allImage.length));

  List<Container> _buildGridTileList(int count)  {

    return List<Container>.generate(
    (int index) =>
    Container(child: new Column(
    mainAxisSize: MainAxisSize.max,
    children: <Widget>[
    width: 96.0,
    height: 96.0,
    fit: BoxFit.contain,),




Use this package as a library

1. Depend on it

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

  image_gallery: ^1.2.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:image_gallery/image_gallery.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 Apr 8, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.7
  • Flutter: 1.12.13+hotfix.9

Health issues and suggestions

Document public APIs. (-1 points)

4 out of 4 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.

Format lib/image_gallery.dart.

Run flutter format to format lib/image_gallery.dart.


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