release 2.0.0
This commit is contained in:
parent
a5d772f036
commit
bd0ee1eed9
3 changed files with 10 additions and 5 deletions
|
|
@ -40,3 +40,8 @@ Add `isFreeText` to `onSelection` callback, useful for recording only recent emo
|
|||
## 1.2.0+1
|
||||
|
||||
Fixup gemoji URL in README.
|
||||
|
||||
## 2.0.0
|
||||
|
||||
- **Breaking:** `onSelection` is now called with the selected `Emoji`, including its aliases, instead of its value.
|
||||
- **Breaking:** Replace `allowFreeText` and `isFreeText` with an optional `onFreeText` callback, called with the search text. The send button is shown when it's set.
|
||||
|
|
|
|||
|
|
@ -27,9 +27,9 @@ showModalBottomSheet(
|
|||
isScrollControlled: true,
|
||||
context: context,
|
||||
builder: (context) => EmojiPicker(
|
||||
onSelection: (emoji, isFreeText) {
|
||||
onSelection: (emoji) {
|
||||
Navigator.of(context).pop();
|
||||
message.sendReaction(emoji);
|
||||
message.sendReaction(emoji.value);
|
||||
},
|
||||
),
|
||||
);
|
||||
|
|
@ -53,5 +53,5 @@ Emoji(
|
|||
|
||||
- `IList<EmojiCategory> prependCategories`: Categories to prepend to the default emoji list
|
||||
- `IList<EmojiCategory> appendCategories`: Categories to append to the default emoji list
|
||||
- `required FutureOr<void> Function(String value) onSelection`: Function to be called when an emoji is selected
|
||||
- `bool allowFreeText = false`: Whether to allow free text to be returned. Defaults to `false`.
|
||||
- `required FutureOr<void> Function(Emoji emoji) onSelection`: Function to be called with the selected emoji
|
||||
- `FutureOr<void> Function(String text)? onFreeText`: If set, allows submitting the search text as is, calling this with it
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
name: material_emoji_picker
|
||||
description: A generic but configurable emoji picker for Flutter
|
||||
version: 1.2.0+1
|
||||
version: 2.0.0
|
||||
repository: https://git.federated.nexus/Henry-Hiles/material_emoji_picker
|
||||
issue_tracker: https://git.federated.nexus/Henry-Hiles/material_emoji_picker/issues
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue