From 7f0bef995fdb6bda069daaab7b64c2fafe62bd5c Mon Sep 17 00:00:00 2001 From: Iurii Dorofeev Date: Mon, 28 Jun 2021 23:24:58 +0300 Subject: [PATCH] Rename set -> stickerSet --- README.md | 6 +++--- example/lib/main.dart | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d6d25a8..5379f19 100644 --- a/README.md +++ b/README.md @@ -30,15 +30,15 @@ Configure your `Info.plist` by right-clicking it in Project Navigator, choosing ### Usage -To import a sticker set of a single sticker to Telegram, create a new set and import it like this: +To import a sticker set to Telegram, create a new set and import it like this: ```dart -final set = StickerSet( +final stickerSet = StickerSet( software: "My app", isAnimated: true, stickers: stickers, ); -TelegramStickersImport.import(set); +TelegramStickersImport.import(stickerSet); ``` #### Android diff --git a/example/lib/main.dart b/example/lib/main.dart index d93d02d..c3859fa 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -188,13 +188,13 @@ class _MyAppState extends State { ), ]; - final set = StickerSet( + final stickerSet = StickerSet( software: "My app", isAnimated: true, stickers: stickers, ); - await TelegramStickersImport.import(set); + await TelegramStickersImport.import(stickerSet); } Future _copyAssets() async {