release 1.0.1
This commit is contained in:
parent
3e889ea960
commit
a4a8bc6116
4 changed files with 11 additions and 9 deletions
|
|
@ -10,8 +10,8 @@ import "package:material_emoji_picker/src/models/emoji_category.dart";
|
|||
import "package:super_sliver_list/super_sliver_list.dart";
|
||||
|
||||
final class const EmojiPicker({
|
||||
final List<EmojiCategory> prependCategories = const [],
|
||||
final List<EmojiCategory> appendCategories = const [],
|
||||
final IList<EmojiCategory> prependCategories = const IList.empty(),
|
||||
final IList<EmojiCategory> appendCategories = const IList.empty(),
|
||||
required final FutureOr<void> Function(String value) onSelection,
|
||||
final bool allowFreeText = false,
|
||||
super.key,
|
||||
|
|
@ -60,10 +60,8 @@ final class const EmojiPicker({
|
|||
AsyncData(value: final categories) => HookBuilder(
|
||||
builder: (context) {
|
||||
final combined = useMemoized(
|
||||
() => prependCategories
|
||||
.toIList()
|
||||
.addAll(categories)
|
||||
.addAll(appendCategories),
|
||||
() =>
|
||||
prependCategories.addAll(categories).addAll(appendCategories),
|
||||
);
|
||||
|
||||
return Column(
|
||||
|
|
|
|||
Loading…
Reference in a new issue