Skip to content

furkansarihan/fast_media_picker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fast_media_picker

Media picker based on Instagram's UI design.

fast_media_picker

Getting started

Before using fast_media_picker, photo_manager and permission_handler need to be configured.

You can (should) also check the Example for correct setup details.

Setup photo_manager

Please read this section.

Setup permission_handler

Please read this section.

Usage

Example usage;

List<AssetEntity>? result = await FastMediaPicker.pick(
    context,
    configs: FastMediaPickerConfigs(
        type: RequestType.image,
        pickLimit: 1,
        crossAxisCount: 4,
    ),
);

Getting the first File from AssetEntity;

if (result == null || result.isEmpty) return;
File? image = await result.first.file;

Customize UI

The body while fast_media_picker asking for permission.

configs: FastMediaPickerConfigs(
    ...
    // This, also can be your Widget.
    permissionRequestWidget: DefaultPermissionRequestBody(
        // Title with big font.
        titleText: '',
        // Messages shows as a icon-text pair.
        messages: [
            PermissionRequestMessages(icon, 'message'),
        ],
        // Button to request permission.
        allowActionText: '',
        // Button to go to Settings.
        goToSettingsActionText: '',
    ),
),

About

Media picker based on Instagram's UI design.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages