Album Image is based in photo_manager package and has the same concept as image_picker but with a more attractive interface to choose an image or video from the device gallery, whether it is Android or iOS

Overview

Album Image is based in photo_manager package and has the same concept as image_picker but with a more attractive interface to choose an image or video from the device gallery, whether it is Android or iOS.

Features

[✓] pick image

[✓] pick video

[✓] pick multi image / video

[] take picture or video from camera

Demo Images

Installation

  1. This package has only tested in android, add album_image: 0.0.1 in your pubspec.yaml
  2. import album_image
import 'package:album_image/album_image.dart';

Getting started

Android

add uses-permission AndroidMAnifest.xml file

">
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

ios

add this config in your info.plist file

    <key>NSPhotoLibraryUsageDescriptionkey>
    <string>Privacy - Photo Library Usage Descriptionstring>
    <key>NSMotionUsageDescriptionkey>
    <string>Motion usage descriptionstring>
    <key>NSPhotoLibraryAddUsageDescriptionkey>
    <string>NSPhotoLibraryAddUsageDescriptionstring>

Example

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

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Builder(builder: (context) {
          final thumbnailQuality = MediaQuery.of(context).size.width ~/ 3;
          return AlbumImagePicker(
            onSelected: (items) {},
            iconSelectionBuilder: (_, selected, index) {
              if (selected) {
                return CircleAvatar(
                  child: Text(
                    '${index + 1}',
                    style: const TextStyle(fontSize: 10, height: 1.4),
                  ),
                  radius: 10,
                );
              }
              return Container();
            },
            crossAxisCount: 3,
            maxSelection: 4,
            onSelectedMax: () {
              print('Reach max');
            },
            albumBackGroundColor: Colors.white,
            appBarHeight: 45,
            itemBackgroundColor: Colors.grey[100]!,
            appBarColor: Colors.white,
            albumTextStyle: const TextStyle(color: Colors.black, fontSize: 14),
            albumSubTextStyle:
            const TextStyle(color: Colors.grey, fontSize: 10),
            type: AlbumType.image,
            closeWidget: const BackButton(
              color: Colors.black,
            ),
            thumbnailQuality: thumbnailQuality * 3,
          );
        }),
      ),
    );
  }
}

You might also like...

Flutter frontend for downloading free album and playlists (based on a YouTube URL) and uploading them to a Plex server.

Flutter frontend for downloading free album and playlists (based on a YouTube URL) and uploading them to a Plex server.

Flutter frontend for downloading free album and playlists (based on a YouTube URL) and uploading them to a Plex server. (The project is currently in progress. There are some additional features and ideas I want to implement.)

Jan 9, 2022

Weather app using Bloc architecture pattern & generic HTTP client with interface implementation and much more for more detail read Readme

Weather app using Bloc architecture pattern & generic HTTP client with interface implementation and much more for more detail read Readme

weather Weather application for current weather, hourly forecast for 48 hours, Daily forecast for 7 days and national weather alerts. How to Run Insta

Oct 29, 2022

Save image to album or sandbox

image_save Save image to album, support Android and iOS. Permission Android Add the following statement in AndroidManifest.xml: uses-permission andro

Nov 1, 2022

dos downloader app is developed for downloading video. You can download video from YouTube and Facebook. You can also play video on background

dosdownloader Dos downloader app is developed for downloading video. You can download video from YouTube and Facebook. You can also play video on back

Dec 8, 2021

A Video Player For Vimeo Videos in Flutter. This plugin allows us to play video from Vimeo and it supports Android and iOS platforms.

A Video Player For Vimeo Videos in Flutter. This plugin allows us to play video from Vimeo and it supports Android and iOS platforms.

vimeo_video_player A Video Player For Vimeo Videos in Flutter. This plugin allow us to play video from vimeo and it's supports Android and iOS platfor

Dec 8, 2022

Peek & Pop implementation for Flutter based on the iOS functionality of the same name.

peek_and_pop Peek & Pop implementation for Flutter based on the iOS functionality of the same name. Finally, the v1.0.0 release! More fluent, more opt

Dec 17, 2022

Build a calculator app in iOS and Android with the same code by using flutter.

flutter_calculator Preview Structure Input Widgets input widgets is all extends StatefulWidget, because they need to response the onTap gesture. Numbe

Nov 24, 2022

A Flutter based to do list app (yes, another to do list... but... this time based on a beautiful design)

A Flutter based to do list app (yes, another to do list... but... this time based on a beautiful design)

✔️ Flutter to do App "To Do List" A Flutter app based on the design of the To Do App, created by Rudi Hartono, see more on: Uplabs. Getting Started 🚀

Dec 31, 2022

Fifa world cup album manager - 8ª edition of Dart Week from Academia do Flutter

Fifa world cup album manager - 8ª edition of Dart Week from Academia do Flutter

DartWeek 8ª edição - FIFA WORLD CUP album manager App para você gerir suas figurinhas da copa! Com o padrão de projeto MVP, usando SetState, Integraçã

Oct 17, 2022
Comments
  • Xin chào Anh, Em mong anh có thể thêm chức năng để tạo được 1 bộ chọn ảnh giống như của facebook ạ

    Xin chào Anh, Em mong anh có thể thêm chức năng để tạo được 1 bộ chọn ảnh giống như của facebook ạ

    1. Về iconSelectionBuilder em mong là gói này sẽ có thêm hỗ trợ tạo border cho những item được chọn
    2. Về albumHeaderTextStyle mong anh sẽ thêm chức năng tương tự centerTitle của appbar vì em không muốn cho nó nằm ở giữa
    3. Cảm ơn Anh vì một bộ chọn ảnh tuyệt vời như này
    opened by chuvanhoang888 4
  • Về hiệu năng của gói

    Về hiệu năng của gói

    Xin chào anh ạ, cảm ơn Anh vì đã cập nhật version mới, nhưng có vẻ như khi chọn ảnh thì selectionBuilder: (_, selected, index) xuất hiện độ trễ ạ và độ trễ này còn ảnh hưởng đến scroll của bộ chọn ảnh khiến nó bị khựng 1 chút ạ. Mong là Anh sẽ có cách giải quyết vấn đề này ạ

    opened by chuvanhoang888 1
Releases(v0.0.2)
Owner
Phuong Vu
Phuong Vu
Flutter video compress - Generate a new file by compressed video, and provide metadata. Get video thumbnail from a video path, supports JPEG/GIF. To reduce app size not using FFmpeg in IOS.

flutter_video_compress Generate a new path by compressed video, Choose to keep the source video or delete it by a parameter. Get video thumbnail from

天海るり 179 Dec 8, 2022
meg4cyberc4t 11 Oct 24, 2022
Flutter Plugin used to query audios/songs infos [title, artist, album, etc..] from device storage.

on_audio_query on_audio_query is a Flutter Plugin used to query audios/songs ?? infos [title, artist, album, etc..] from device storage. Help: Any pro

Lucas Josino 31 Dec 10, 2022
A sample app of using the image_picker + path_provider and permission_handler package to request permission and store photos on mobile

image_picker_example A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you sta

iang12 4 Apr 19, 2022
Flutter photo - video from album by flutter

archived The package is archived. Please use flutter_wechat_assets_picker. photo image picker, multi picker support ios icloud support video use flutt

Caijinglong 300 Dec 8, 2022
An easy-to-use flutter http network requests handler with more functionality than http but more simpler than dio.

network_requests An easy-to-use flutter http network requests handler with more functionality than http but more simpler than dio. Platform Supported

Coder_Manuel 3 Dec 15, 2022
The same old Weather App, But 'In Flutter , By Me'

Weather App v1.0.1 About The same old Weather App, But 'In Flutter , By Me' . NB Still in developement Stats ### v1.0.1 - Started a Basic outline of

Adithya Krishnan 2 Sep 7, 2022
More than 130+ pages in this beautiful app and more than 45 developers has contributed to it.

flutter-ui-nice ❤️ Star ❤️ the repo to support the project or ?? Follow Me.Thanks! Facebook Page Twitter Medium QQ Group Flutter Open NieBin Flutter O

Flutter开源社区 3.4k Jan 3, 2023
More than 130+ pages in this beautiful app and more than 45 developers has contributed to it.

flutter-ui-nice ❤️ Star ❤️ the repo to support the project or ?? Follow Me.Thanks! Facebook Page Twitter Medium QQ Group Flutter Open NieBin Flutter O

Flutter开源社区 3.4k Jan 5, 2023