v0.2.3
chat_pickers
一個用於顯示表情符號/GIF鍵盤的新Flutter套件。
36喜歡 40近 30 天下載40Pub 分數
平台暫無資料
kfiross/chat_pickers open-source repository details.
{"sdk":"flutter"}^0.12.2^0.2.0^0.5.12+4^4.0.5955^0.1.0^0.15.0^1.0.1{"sdk":"flutter"}以下為英文專案原文快照,最新內容請造訪 GitHub。
A Flutter package that provides a Keyboard widget for using Emojis and gifs.
Heavily based on the awesome(!) packages:
General usage:
https://raw.githubusercontent.com/kfiross/chat_pickers/master/gifs/general.gifSearching for an emoji:
https://raw.githubusercontent.com/kfiross/chat_pickers/master/gifs/search_emoji.gifadding emojis as part of text messssage:
https://raw.githubusercontent.com/kfiross/chat_pickers/master/gifs/add_emoji_in_text.gifFor using the GIFs page you have to use GIPHY API key You need to register an app at the Giphy Developers Portal in order to retrieve an API key.
To use the keyboard define the widget ChatPickers:
The minimum required is:
var picker = ChatPickers(
chatController: _chatController,
emojiPickerConfig: EmojiPickerConfig(
//optional configure (as below)
),
giphyPickerConfig: GiphyPickerConfig(
apiKey: "some API Key",
// other optional configure (as below)
);
If you want to have your own config, follow the below:
configuration to customize the look& behaviour of the emoji page
EmojiPickerConfig(
columns: <int>, // default is 7
bgBarColor: <Color>, // top/bottom bar color
bgColor:<Color>,
indicatorColor: <Color>,
);
configuration to customize the look & behaviour of the gif page
GiphyPickerConfig(
apiKey: <Your Giphy API key>,
lang : "EN",
onError: (error) => print(error),
onSelected: (gif) => sendGif(gif),
showPreviewPage: true/false,
searchText: "Search GIPHY"
);