From 4c2a5bdbe6cf22d2466c852907eac1b6b3795ef9 Mon Sep 17 00:00:00 2001 From: hm21 Date: Wed, 31 Jan 2024 19:38:37 +0100 Subject: [PATCH] fix(emojiSet): resolve example bug as per GitHub issue #2 Addressed the example bug in `emojiSet`, providing a fix that aligns with the details discussed in GitHub issue #2 (https://github.com/hm21/pro_image_editor/issues/2#issue-2110634675). This update ensures `emojiSet` functions as intended. --- CHANGELOG.md | 3 +++ example/lib/main.dart | 14 +++++++++----- pubspec.yaml | 2 +- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ef4cda56..7b48add4 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 6820e438..09a6e379 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 d3a9f496..1caaf3a8 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/