A Flutter plugin for adding stickers to IOS WhatsApp, images from internet.
To use this plugin, add whatsapp_stickers
as a dependency in your pubspec.yaml file.
static addStickersToWpp(
String identifier, String name, String trayImageFile, List<Map>stickers,
{
String name,
List<dynamic> stickers,
String trayImageFile,
String identifier
}
) async {
var stickerPack = WhatsappStickers(
identifier,
name,
"GoFun Stickers",
trayImageFile,
publisherWebsite, // Publisher Website
"", // Privacy Policy Website
"" // License Agreement Website
);
stickerPack
..addSticker(stickers); // each sticker have to be a base64
try {
await stickerPack.sendToWhatsApp();
} on WhatsappStickersException catch (e) {
print(e.cause);
}
}