पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

social_share कवर
पैकेज विवरणv2.3.1

social_share

आपको कुछ प्रसिद्ध ऐप्स में सीधे शेयर करने के लिए आवश्यक विभिन्न शेयरिंग विकल्प।

AndroidiOS
30-दिन डाउनलोड
1.8 हज़ार
लाइक
409
Pub अंक
140

पैकेज इंस्टॉल करें

flutter pub add social_share

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

सोशल_शेयर पैकेज एंड्रॉइड और आईओएस पर लोकप्रिय सोशल मीडिया ऐप्स के साथ सामग्री साझा करने का एक सरल और कुशल तरीका प्रदान करता है। यह विस्तृत शेयरिंग विकल्पों का समर्थन करता है, जिससे उपयोगकर्ता व्हाट्सएप, फेसबुक, इंस्टाग्राम, ट्विटर और अधिक प्लेटफॉर्मों पर सामग्री तेजी से पोस्ट कर सकते हैं। मूल इंटेंट एकीकरण के साथ बनाया गया, यह डिवाइसों के बीच बिना किसी रुकावट के शेयरिंग अनुभव सुनिश्चित करता है। पैकेज हल्का है और इंस्टॉल करने में आसान है, जिससे यह जटिल सेटअप के बिना विश्वसनीय शेयरिंग कार्यक्षमता की आवश्यकता वाले ऐप्स के लिए आदर्श है।

उपयोग

  • सोशल मीडिया पर लिंक साझा करें
  • WhatsApp के माध्यम से संदेश भेजना
  • Instagram पर सामग्री पोस्ट करना
  • फेसबुक के साथ एकीकरण
  • त्वरित उपयोगकर्ता-नेतृत्व शेयरिंग सक्षम करें
  • क्रॉस-प्लेटफॉर्म साझाकरण का समर्थन करना

मुख्य विशेषताएँ

  • कई सोशल प्लेटफॉर्म का समर्थन करता है
  • मूल इरादा-आधारित साझाकरण
  • सरल API एकीकरण
  • क्रॉस-प्लेटफॉर्म संगतता (Android और iOS)
  • हल्का और तेज़
  • आसान कॉन्फ़िगरेशन

इनके लिए उपयुक्त

  • सोशल शेयरिंग की आवश्यकता वाले मोबाइल एप्स
  • व्यापक उपयोगकर्ता भागीदारी के लक्ष्य वाले ऐप्स
  • त्वरित साझाकरण कार्यान्वयन खोज रहे विकासक
  • प्लेटफॉर्म-विशिष्ट साझाकरण की आवश्यकता वाले प्रोजेक्ट्स
  • उपयोगकर्ता-उत्पादित सामग्री साझा करने वाले ऐप्स
  • सामाजिक या समुदाय-आधारित एप्लिकेशन

विचार योग्य बातें

  • Android पर सही ऐप की अनुमतियाँ आवश्यक हैं
  • कुछ प्लेटफॉर्म के लिए अतिरिक्त सेटअप की आवश्यकता हो सकती है
  • समर्थित सोशल ऐप्स तक सीमित
  • बाहरी एप्लिकेशन की उपलब्धता पर निर्भर करता है
  • कस्टम साझा करने वाले गंतव्य के लिए उपयुक्त नहीं
  • प्लेटफॉर्म-विशिष्ट व्यवहार में भिन्नता हो सकती है

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

social_share

Wide variety of sharing options you'll need to share directly to certain popular apps or just share with default native share.

Introduction

Works on both platforms Android and iOS

It provides you with most of the popular sharing options With this plugin you can share on instagram stories and facebook stories and also copy to clipboard

Usage

Android Configuration
Paste the following attribute in the manifest tag in the android/app/src/main/AndroidManifest.xml:
 		`xmlns:tools="http://schemas.android.com/tools"`
For example:
        <manifest xmlns:android="http://schemas.android.com/apk/res/android"
                xmlns:tools="http://schemas.android.com/tools"
                package="your package...">
Add this piece of code in the manifest/application in the android/app/src/main/AndroidManifest.xml:
 		<provider
            android:name="androidx.core.content.FileProvider"
            android:authorities="${applicationId}.com.shekarmudaliyar.social_share"
            android:exported="false"
            android:grantUriPermissions="true"
            tools:replace="android:authorities">
            <meta-data
                android:name="android.support.FILE_PROVIDER_PATHS"
                android:resource="@xml/filepaths" />
        </provider>
Create a xml file named filepaths.xml in the app/src/main/res/xml folder and paste this code in the file :
<?xml version="1.0" encoding="utf-8"?>
<paths xmlns:android="http://schemas.android.com/apk/res/android">
    <cache-path name="image" path="/"/>
</paths>
iOS Configuration
Add this to your Info.plist to use share on instagram and facebook story
<key>LSApplicationQueriesSchemes</key>
	<array>
	<string>instagram-stories</string>
	<string>facebook-stories</string>
	<string>facebook</string>
	<string>instagram</string>
	<string>twitter</string>
	<string>whatsapp</string>
    <string>tg</string>
	</array>
Add this if you are using share on facebook. For this you have to create an app on https://developers.facebook.com/ and get the App ID
<key>FacebookAppID</key>
<string>xxxxxxxxxxxxxxx</string>
shareInstagramStory
SocialShare.shareInstagramStory(imageFile.path, "#ffffff",
                              "#000000", "https://deep-link-url");
shareInstagramStorywithBackground
 SocialShare.shareInstagramStorywithBackground(image.path, "https://deep-link-url",
                              backgroundImagePath: backgroundimage.path);
shareFacebookStory

For iOS

SocialShare.shareFacebookStory(image.path,"#ffffff","#000000",
                              "https://deep-link-url","facebook-app-id");

For Android appID is mandatory if using shareFacebookStory or else it wont work

SocialShare.shareFacebookStory(image.path,"#ffffff","#000000",
                              "https://deep-link-url","facebook-app-id",
							  appId: "xxxxxxxxxxxxx");
copyToClipboard
SocialShare.copyToClipboard("This is Social Share plugin");
shareTwitter
//without hashtags
SocialShare.shareTwitter("This is Social Share plugin");

//with hashtags
SocialShare.shareTwitter(
                              "This is Social Share twitter example",
                              hashtags: ["hello", "world", "foo", "bar"]);

//with hashtags and link
SocialShare.shareTwitter(
                              "This is Social Share twitter example",
                              hashtags: ["hello", "world", "foo", "bar"],url:"https://your-url-here/");
shareSms
//without url link in message
SocialShare.shareSms("This is Social Share Sms example");

//with url link in message
SocialShare.shareSms("This is Social Share Sms example",url: "https://your-url-here/");
shareWhatsapp
SocialShare.shareWhatsapp("Hello World");
shareTelegram
SocialShare.shareTelegram("Hello World");
shareOptions

This will open the default native share options

//without an image
SocialShare.shareOptions("Hello world");

//with an image
SocialShare.shareOptions("Hello world",imagePath: image.path);
checkInstalledAppsForShare
SocialShare.checkInstalledAppsForShare();

Here's few demo!

Story share on Instagram

insta story share demo

Story share on Facebook

fb story share demo

Copy to Clipboard

copy demo

Known issues

On Android 6, Share to Instagram Stories may not open Instagram app or load the specified image.

Buy me a :coffee: !!

((More coffee == more code) == faster updates)

Donate

श्रेणियाँ

निर्भरताएँ

निर्भरता सूची 1 आइटम

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट

अभी कोई डेटा उपलब्ध नहीं है।