v2.0.0flutter_instagram_image_picker
iOS और Android पर Instagram मल्टी इमेज पिकर को दिखाने की अनुमति देने वाला Flutter प्लगइन।
Instagram से छवियाँ चुनने के लिए एक Flutter पैकेज
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
A Flutter package for picking images from Instagram
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 data (userId+SessionKey) to the gallery.
1.Check if user has logged in, if not prompt him to enter his login data using by navigation to the InstagramLoginPage
bool isLogged = await InstagramAuth().isLogged;
// check if user already logged in, if not log the user
if (!isLogged) {
bool loginStatus = await InstagramAuth().signUserIn(context);
// if user canceled the operation
if (!loginStatus)
return;
}
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: (photos) {
// photos are the photos you selected in the picker
// each one has the url
Navigator.pop(context);
},
onCancel: () => Navigator.pop(context),
),
),
);
,
निर्भरता सूची 8 आइटम
{"sdk":"flutter"}^2.0.15^0.13.5^0.3.0{"sdk":"flutter"}^1.0.4^0.3.02.3.3उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗