diff --git a/CHANGELOG.md b/CHANGELOG.md index ef4cda5..7b48add 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/example/lib/main.dart b/example/lib/main.dart index 6820e43..09a6e37 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -395,14 +395,18 @@ class _MyHomePageState extends State { 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, diff --git a/pubspec.yaml b/pubspec.yaml index d3a9f49..1caaf3a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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/