From a4a8bc61162642691e54de6f48d246f09a6946af Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Wed, 16 Sep 2026 14:59:40 -0400 Subject: [PATCH] release 1.0.1 --- CHANGELOG.md | 4 ++++ README.md | 4 ++-- lib/src/widgets/emoji_picker.dart | 10 ++++------ pubspec.yaml | 2 +- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1af066f..606ec72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,3 +5,7 @@ Initial release ## 1.0.0+1 Fixup readme + +## 1.0.1 + +Use `IList`s for categories. These `IList`s can be used by consumers via dot-shorthands, e.g. `.new([])` diff --git a/README.md b/README.md index b555773..d2cc493 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ showModalBottomSheet( ### Accepted Parameters -- `List prependCategories`: Categories to prepend to the default emoji list -- `List appendCategories`: Categories to append to the default emoji list +- `IList prependCategories`: Categories to prepend to the default emoji list +- `IList appendCategories`: Categories to append to the default emoji list - `required FutureOr 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`. diff --git a/lib/src/widgets/emoji_picker.dart b/lib/src/widgets/emoji_picker.dart index 7d819a3..513dde6 100644 --- a/lib/src/widgets/emoji_picker.dart +++ b/lib/src/widgets/emoji_picker.dart @@ -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 prependCategories = const [], - final List appendCategories = const [], + final IList prependCategories = const IList.empty(), + final IList appendCategories = const IList.empty(), required final FutureOr 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( diff --git a/pubspec.yaml b/pubspec.yaml index cb2226f..11b8ba0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: material_emoji_picker description: A generic but configurable emoji picker for Flutter -version: 1.0.0+1 +version: 1.0.1 repository: https://git.federated.nexus/Henry-Hiles/material_emoji_picker issue_tracker: https://git.federated.nexus/Henry-Hiles/material_emoji_picker/issues