Skip to content

Commit

Permalink
fix(emojiSet): resolve example bug as per GitHub issue #2
Browse files Browse the repository at this point in the history
Addressed the example bug in `emojiSet`, providing a fix that aligns with the details discussed in GitHub issue #2 (#2 (comment)). This update ensures `emojiSet` functions as intended.
  • Loading branch information
hm21 committed Jan 31, 2024
1 parent 2fcee2c commit 4c2a5bd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## Version 2.2.2
- Fixed example bug for `emojiSet`, details in [GitHub issue #2](https://github.com/hm21/pro_image_editor/issues/2#issue-2110634675)

## Version 2.2.1
- Fixed close warning bug, details in [GitHub issue #1](https://github.com/hm21/pro_image_editor/issues/1#issuecomment-1905984568)

Expand Down
14 changes: 9 additions & 5 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -395,14 +395,18 @@ class _MyHomePageState extends State<MyHomePage> {
textStyle: TextStyle(
fontFamilyFallback: ['Apple Color Emoji']),
checkPlatformCompatibility: true,
emojiSet:
null /* [
emojiSet: [
CategoryEmoji(
Category.ANIMALS,
[Emoji.fromJson({})],
[
Emoji(
'emoji',
'name',
hasSkinTone: false,
),
],
)
] */
,
],
verticalSpacing: 0,
horizontalSpacing: 0,
gridPadding: EdgeInsets.zero,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: pro_image_editor
description: "A Flutter image editor: Seamlessly enhance your images with user-friendly editing features."
version: 2.2.1
version: 2.2.2
homepage: https://github.com/hm21/pro_image_editor/
repository: https://github.com/hm21/pro_image_editor/
issue_tracker: https://github.com/hm21/pro_image_editor/issues/
Expand Down

0 comments on commit 4c2a5bd

Please sign in to comment.