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

share_social_network कवर
पैकेज विवरणv1.2.9

share_social_network

एक तैयार प्लेटफॉर्म जो विभिन्न तरीकों से साझा करने की सुविधा प्रदान करता है, आपको कुछ लोकप्रिय एप्लिकेशनों को सीधे पहुँच प्रदान करने की आवश्यकता होगी या सिर्फ बिल्ट-इन डिफ़ॉल्ट साझा करने का उपयोग करना होगा।

AndroidiOS
30-दिन डाउनलोड
16
लाइक
26
Pub अंक
105

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

flutter pub add share_social_network

पैकेज अवलोकन

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

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

उपयोग

  • सोशल मीडिया ऐप्स के भीतर लिंक या टेक्स्ट साझा करना
  • उपयोगकर्ता-उत्पादित सामग्री वितरण सक्षम करें
  • डिफ़ॉल्ट सिस्टम शेयरिंग डायलॉग को एकीकृत करना
  • क्रॉस-प्लेटफॉर्म साझाकरण कार्य प्रवाहों का समर्थन करना
  • एप्प यूआई में शेयर बटन जोड़ना

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

  • Flutter के साथ सरल एकीकरण
  • Android और iOS के लिए समर्थन
  • लोकप्रिय सोशल ऐप्स तक सीधा पहुँच
  • प्रणाली के डिफ़ॉल्ट साझाकरण पर वापस जाएं
  • आवश्यक न्यूनतम कॉन्फ़िगरेशन

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

  • मूल शेयरिंग विशेषताओं की आवश्यकता वाले ऐप्स
  • त्वरित साझाकरण कार्यान्वयन की खोज कर रहे विकासकर्मी
  • क्रॉस-प्लेटफ़ॉर्म मोबाइल एप्लिकेशन्स
  • सोशल मीडिया एकीकरण
  • सामग्री साझाकरण प्लेटफॉर्म

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

  • शेयरिंग इंटरफेस की सीमित कस्टमाइज़ेशन
  • उपकरण में स्थापित सोशल ऐप्स पर निर्भर करता है
  • शेयर के लिए निर्मित विश्लेषण नहीं है
  • कुछ प्लेटफॉर्म पर उचित अनुमतियां आवश्यक हैं
  • सभी निश के सोशल नेटवर्क्स का समर्थन नहीं कर सकता है

मूल README

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

Share Social Network

pub package

A ready-made platform that provides a wide range of ways to share, you will need to provide access directly to certain popular applications or just share using the built-in default sharing.

Platforms

Works on both platforms Android and iOS

Image Image Image
Video Photo Video

Initial settings

Android Configuration
Paste the following attribute in the AndroidManifest.xml 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...
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>
Add this code snippet to the very bottom manifest/application in the android/app/src/main/AndroidManifest.xml insert after meta-data:
 		     <provider
            android:name="androidx.core.content.FileProvider"
            android:authorities="${applicationId}.com.weeidl.share_social_network"
            android:exported="false"
            android:grantUriPermissions="true"
            tools:replace="android:authorities">
            <meta-data
                android:name="android.support.FILE_PROVIDER_PATHS"
                android:resource="@xml/filepaths" />
        </provider>
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>

Getting Started

Add the package to your pubspec.yaml:

   share_social_network: ^1.2.9

In your dart file, import the library:

    import 'package:share_social_network/share_social_network.dart';

Instead of using a ShareSocialNetwork use ShareSocialNetwork.show Widget:

  ShareSocialNetwork.show(
    context: context,
    backgroundColor: Colors.white,
    pillColor: Colors.black12,
    transitionDuration: Duration(milliseconds: 300),
    screenshotController: screenshotController,
    copyToClipboard: "https://github.com/weeidl/share_social...",
    telegram: Telegram(
      content: "Hello World \n https://github.com/weeidl",
    ),
    instagram: Instagram(
      backgroundBottomColor: "#FF7391",
      backgroundTopColor: "#591E78",
      attributionURL: "https://deep-link-url",
      imagePath: imagePath,
    ),
    facebook: Facebook(
      backgroundTopColor: "#ffffff",
      attributionURL: "https://github.com/weeidl",
      backgroundBottomColor: "#000000",
      imagePath: imagePath,
      appId: "xxxxxxxxxxxxx",
    ),
    more: More(
      message: 'Hello World \n https://github.com/weeidl',
    ),
    twitter: Twitter(
      captionText: 'Share twitter',
      hashtags: ["hello", "world", "weeild", "artur"],
      url: 'https://github.com/weeidl',
      trailingText: " \nweeidl",
    ),
    whatsapp: Whatsapp(
      content: 'Hello World \n https://github.com/weeidl',
    ),
  );
 }
Example:

Example of how to send something to instagram:

ScreenshotController screenshotController = ScreenshotController();
void shareSocialNetwork(BuildContext context) async {
  String imagePath = await screenshotController.capture().then((image) async {
    final directory = await getApplicationDocumentsDirectory();
    final file = await File('${directory.path}/temp.png').create();
    await file.writeAsBytes(image!);
    return file.path;
  });
  ShareSocialNetwork.show(
    context: context,
    backgroundColor: Colors.white,
    pillColor: Colors.black12,
    transitionDuration: Duration(milliseconds: 300),
    screenshotController: screenshotController,
    copyToClipboard: "https://github.com/weeidl/share_social...",
    instagram: Instagram(
      backgroundBottomColor: "#FF7391",
      backgroundTopColor: "#591E78",
      attributionURL: "https://deep-link-url",
      imagePath: imagePath,
    ),
  );
}
Follow Me:

instagram Telegram LinkedIn GitHub

श्रेणियाँ

निर्भरताएँ

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

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

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

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