add isFreeText to onSelection
This commit is contained in:
parent
aa9a22035c
commit
a26dac8012
1 changed files with 3 additions and 3 deletions
|
|
@ -19,7 +19,7 @@ class EmojiPicker extends HookConsumerWidget {
|
|||
|
||||
final IList<EmojiCategory> prependCategories;
|
||||
final IList<EmojiCategory> appendCategories;
|
||||
final FutureOr<void> Function(String value) onSelection;
|
||||
final FutureOr<void> Function(String value, bool isFreeText) onSelection;
|
||||
final bool allowFreeText;
|
||||
|
||||
@override
|
||||
|
|
@ -113,7 +113,7 @@ class EmojiPicker extends HookConsumerWidget {
|
|||
IconButton(
|
||||
onPressed: search.value.isEmpty
|
||||
? null
|
||||
: () => onSelection(search.value),
|
||||
: () => onSelection(search.value, true),
|
||||
icon: Icon(Icons.send),
|
||||
),
|
||||
],
|
||||
|
|
@ -214,7 +214,7 @@ class EmojiPicker extends HookConsumerWidget {
|
|||
return IconButton(
|
||||
padding: EdgeInsets.zero,
|
||||
onPressed: () =>
|
||||
onSelection(emoji.value),
|
||||
onSelection(emoji.value, false),
|
||||
icon: SizedBox.square(
|
||||
dimension: 36,
|
||||
child: FittedBox(child: emoji.widget),
|
||||
|
|
|
|||
Loading…
Reference in a new issue