flutter_instagram_image_picker 0.4.0-dev.1 copy "flutter_instagram_image_picker: ^0.4.0-dev.1" to clipboard
flutter_instagram_image_picker: ^0.4.0-dev.1 copied to clipboard

outdated

Flutter plugin that allows you to display Instagram multi image picker on iOS and Android.

flutter_instagram_image_picker #

A Flutter package for picking images from Instagram

Getting Started #

This plugin displays a gallery with user's Instagram Albums and Photos, based on the access token provided. It does handle authorization and login by itself.
Then just provides access token to the gallery.

Usage #

1.Check if user has logged in, if not prompt him to enter his login data using by navigation to the InstagramLoginPage

Map loginMap;
bool isLogged = await InstagramAuth().isLogged;
// check if user already logged in, if not log the user using the
// WebView interface
if (!isLogged) {
  loginMap = await Navigator.push(
      context,
      MaterialPageRoute(
        builder: (_) => InstagramLoginPage(),
      ));

  // if user canceled the operation
  if (loginMap == null)
    return;

  // try to log in the user
  await InstagramAuth().login(loginMap['username'], loginMap['password']);
}

2.Check if the user logged in successfully by accessing his data.

final accessMapData = await InstagramAuth().accessData;
if(accessMapData == null){
  return null;
}

3.After we got the access data, we can navigate to InstagramImagePicker:

Navigator.push(
  context,
  MaterialPageRoute(
    builder: (context) => InstagramImagePicker(
      accessMapData,
      showLogoutButton: true,
      onDone: (items) {
        Navigator.pop(context);
      },
      onCancel: () => Navigator.pop(context),
    ),
  ),
);
,

Screenshots #

  • Login Page:

  • Image Picker:

  • Image Picker (after selection):

25
likes
0
pub points
59%
popularity

Publisher

unverified uploader

Flutter plugin that allows you to display Instagram multi image picker on iOS and Android.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, http, shared_preferences

More

Packages that depend on flutter_instagram_image_picker