fb_image_picker 0.0.1 copy "fb_image_picker: ^0.0.1" to clipboard
fb_image_picker: ^0.0.1 copied to clipboard

FaceBook image picker.

Description #

A Flutter plugin for iOS and Android for picking images from the image library, and taking new pictures with the camera. - Use with love

SetUp #

Add the following to your "gradle.properties" file:

android.useAndroidX=true
android.enableJetifier=true

Make sure you set the compileSdkVersion in your "android/app/build.gradle" file to 31:

android {
  compileSdkVersion 31
  ...
}

Make sure you set the minSdkVersion in your "android/app/build.gradle" file to 21:

android {
  minSdkVersion 21
  ...
}

Set android.permission

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

Screenshots #

select image: screanshott show skeleton: screanshott show folders: screanshott show camera: screanshott

Getting started #

add package URL in your pubspec file.

Usage #

Just Navigator push to FBImagePicker

TextButton(
        child: const Text(
        'FB Image Picker',
            ),
            onPressed: () {
                Navigator.push(
                    context,
                    MaterialPageRoute(
                        builder: (context) => FBImagePicker(
                            btnColor: Colors.blue,
                            title: 'FB Image Picker',
                            afterNextBTN: () {
                                Navigator.pop(context);
                            },
                            backOnSystem: () {
                                Navigator.pop(context);
                            },
                            onComplete: (final imagePickerList) {
                            setState(() {
                            imageList = imagePickerList;
                        });
                    },
                )),
            );
        })

All params #

        backgroundColor: Colors.white,
        btnColor: Colors.blue,
        textStyle: TextStyle(color: Colors.black),
        title: 'FB Image Picker',
        enableCamera: true,
        afterNextBTN: () {},
        backOnSystem: () {},
        onComplete: (imagePickerList) {},

Additional information #