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

पैकेज विवरणv1.0.1+5

flutter_whatsapp_stickers

अपने फ्लटर ऐप में व्हाट्सएप स्टिकर जोड़ने के लिए फ्लटर प्लगइन।

Android
30-दिन डाउनलोड
8
लाइक
61
Pub अंक
145

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

flutter pub add flutter_whatsapp_stickers

पैकेज अवलोकन

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

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

उपयोग

  • व्हाट्सएप चैट में कस्टम स्टिकर्स साझा करना
  • संदेश ऐप में स्टिकर पैक को एकीकृत करना
  • उपयोगकर्ता-उत्पादित स्टिकर सामग्री को सक्षम करना
  • ऐप्स में इंटरैक्टिव स्टिकर फीचर्स जोड़ना
  • ब्रांडेड स्टिकर संग्रह बनाना

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

  • Android-केवल समर्थन
  • स्टिकर पैक प्रबंधन के लिए सरल API
  • व्हाट्सएप स्टिकर फॉर्मेट का समर्थन करता है
  • Flutter ऐप्स के साथ आसान एकीकरण
  • मेटाडेटा और छवि संपत्तियों को हैंडल करता है

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

  • संदेश ऐप बनाने वाले विकासकर्ता
  • उपयोगकर्ता-उत्पादित सामग्री पर ध्यान केंद्रित ऐप्स
  • ब्रांडेड स्टिकर वितरण प्लेटफॉर्म
  • स्टिकर डिज़ाइन के लिए क्रिएटिव टूल्स
  • Android-प्रथम Flutter एप्लिकेशन

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

  • Android प्लेटफॉर्म तक सीमित
  • WhatsApp स्टिकर विनिर्माण नियमों का पालन करना आवश्यक है
  • कोई iOS समर्थन नहीं
  • स्टिकर पैक को सही तरीके से फॉर्मेट किया जाना चाहिए
  • अतिरिक्त संपत्ति प्रबंधन की आवश्यकता हो सकती है

मूल README

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

WhatsApp Stickers plugin for Flutter

pub package

This plugin is still under development and for now, only Android is supported. Feedback and Pull Requests are welcome!

I'm in the process of rebuilding this plugin and the new version will be released at the end of October 🤞

Getting Started

Add flutter_whatsapp_stickers as a dependency in your pubspec.yaml file.

Check out the example directory for a sample app.

Android Configuration

Add the following option to your app\build.gradle file. This will prevent all WebP files from being compressed.

android {
    aaptOptions {
        noCompress "webp"
    }
}
Packaged Assess

You need to include your assets in your pubspec.yaml file.

flutter:
  assets:
    - sticker_packs/sticker_packs.json
    - sticker_packs/1/
Dynamic Content

If you are using assets that are not bundled in your build, then you need to add the following to your Manifest file. Note that you cannot use both.

<meta-data android:name="NonAssetContentProvider" android:value="true" />
Sticker Pack Contents File

To change the stickers packs file, add this Build Config Field to your app\build.gradle file. The default is sticker_packs.json.

buildConfigField("String", "STICKER_PACK_FILE", "\"sticker_packs.json\"")

iOS Integration

Currently, there is no iOS support. Pull requests for this are more than welcome for this.

Methods

Check if WhatsApp is installed.

bool whatsAppInstalled = await WhatsAppStickers.isWhatsAppInstalled;

Check if the WhatsApp Consumer package is installed

bool whatsAppConsumerAppInstalled = await WhatsAppStickers.isWhatsAppConsumerAppInstalled;

Check if the WhatsApp Business package app is installed

bool whatsAppSmbAppInstalled = await WhatsAppStickers.isWhatsAppSmbAppInstalled;

Check if a sticker pack is installed.

_stickerPackInstalled = await WhatsAppStickers().isStickerPackInstalled(_stickerPackIdentifier);

Add a sticker pack to WhatsApp.

WhatsAppStickers().addStickerPack(
  packageName: WhatsAppPackage.Consumer,
  stickerPackIdentifier: _stickerPackIdentifier,
  stickerPackName: _stickerPackName,
  listener: _listener,
);

Updated Sticker Pack contents and notify listeners

WhatsAppStickers().updatedStickerPacks(_stickerPackIdentifier);

The Add Sticker Pack Listener

Future<void> _listener(StickerPackResult action, bool result, {String error}) async {
    // Do what you must here
}

Here is an example of how to create a custom stickers_packs.json file.

void createLocalFile() async {
  String dir = (await getApplicationDocumentsDirectory()).path;
  Directory stickersDirectory = Directory("$dir/sticker_packs");
  if (!await stickersDirectory.exists()) {
    await stickersDirectory.create();
  }

  File jsonFile = File('$dir/sticker_packs/sticker_packs.json');
  String content = jsonEncode(stickerPacks);
  jsonFile.writeAsStringSync(content);
}

श्रेणियाँ

निर्भरताएँ

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

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

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

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