release 1.0.1

This commit is contained in:
Henry Hiles 2026-09-16 14:59:40 -04:00
commit a4a8bc6116
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
4 changed files with 11 additions and 9 deletions

View file

@ -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([])`

View file

@ -34,7 +34,7 @@ showModalBottomSheet(
### Accepted Parameters
- `List<EmojiCategory> prependCategories`: Categories to prepend to the default emoji list
- `List<EmojiCategory> appendCategories`: Categories to append to the default emoji list
- `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`.

View file

@ -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(

View file

@ -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