Compare commits
4 changed files with 5 additions and 9 deletions
|
|
@ -32,7 +32,3 @@ Wait for end of frame before highlighting categories, fixing an issue where cate
|
||||||
## 1.1.2
|
## 1.1.2
|
||||||
|
|
||||||
Make search case-insensitive.
|
Make search case-insensitive.
|
||||||
|
|
||||||
## 1.2.0
|
|
||||||
|
|
||||||
Add `isFreeText` to `onSelection` callback, useful for recording only recent emojis and not text reactions.
|
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ showModalBottomSheet(
|
||||||
isScrollControlled: true,
|
isScrollControlled: true,
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) => EmojiPicker(
|
builder: (context) => EmojiPicker(
|
||||||
onSelection: (emoji, isFreeText) {
|
onSelection: (emoji) {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
message.sendReaction(emoji);
|
message.sendReaction(emoji);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ class EmojiPicker extends HookConsumerWidget {
|
||||||
|
|
||||||
final IList<EmojiCategory> prependCategories;
|
final IList<EmojiCategory> prependCategories;
|
||||||
final IList<EmojiCategory> appendCategories;
|
final IList<EmojiCategory> appendCategories;
|
||||||
final FutureOr<void> Function(String value, bool isFreeText) onSelection;
|
final FutureOr<void> Function(String value) onSelection;
|
||||||
final bool allowFreeText;
|
final bool allowFreeText;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
@ -113,7 +113,7 @@ class EmojiPicker extends HookConsumerWidget {
|
||||||
IconButton(
|
IconButton(
|
||||||
onPressed: search.value.isEmpty
|
onPressed: search.value.isEmpty
|
||||||
? null
|
? null
|
||||||
: () => onSelection(search.value, true),
|
: () => onSelection(search.value),
|
||||||
icon: Icon(Icons.send),
|
icon: Icon(Icons.send),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
@ -214,7 +214,7 @@ class EmojiPicker extends HookConsumerWidget {
|
||||||
return IconButton(
|
return IconButton(
|
||||||
padding: EdgeInsets.zero,
|
padding: EdgeInsets.zero,
|
||||||
onPressed: () =>
|
onPressed: () =>
|
||||||
onSelection(emoji.value, false),
|
onSelection(emoji.value),
|
||||||
icon: SizedBox.square(
|
icon: SizedBox.square(
|
||||||
dimension: 36,
|
dimension: 36,
|
||||||
child: FittedBox(child: emoji.widget),
|
child: FittedBox(child: emoji.widget),
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
name: material_emoji_picker
|
name: material_emoji_picker
|
||||||
description: A generic but configurable emoji picker for Flutter
|
description: A generic but configurable emoji picker for Flutter
|
||||||
version: 1.2.0
|
version: 1.1.2
|
||||||
repository: https://git.federated.nexus/Henry-Hiles/material_emoji_picker
|
repository: https://git.federated.nexus/Henry-Hiles/material_emoji_picker
|
||||||
issue_tracker: https://git.federated.nexus/Henry-Hiles/material_emoji_picker/issues
|
issue_tracker: https://git.federated.nexus/Henry-Hiles/material_emoji_picker/issues
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue