Fintasys / emoji_picker_flutter

A Flutter package that provides an Emoji picker widget with 1500+ emojis in 8 categories.
MIT License
154 stars 114 forks source link

[Feature] Filter out emojis that cannot be displayed on iOS #165

Closed naamapps closed 5 months ago

naamapps commented 8 months ago

Hi, Thanks for the great package. I was wondering if it's possible to filter out unsupported emojis on iOS. I know it's currently only for android. But there is not reason why.

Please consider adding it to the package, Thanks!

Fintasys commented 8 months ago

iOS doesn't provide an easy way to determine which emoji is supported or not like Android does. Beside that all emoji should be supported by iOS. Is there anything that doesn't work?

naamapps commented 8 months ago

@Fintasys Thanks for your super quick response! Well for older iOS versions not all emojis are supported (which is to be expected). I hope we can come up with a workaround, because looking at question marks is super bad UX. See iOS 15.3.1:

IMG_0272

stact commented 7 months ago

It's seems the issue is related to flutter. Several issue are still opened:

I tried to check but there is no easy way to detect this glitch. We have also this option checkPlatformCompatibility but it seems is still displaying the unsupported emojis :)

Any idea?

stact commented 7 months ago

@Fintasys I found a good workaround. No more glitch :) Regarding this comment: https://github.com/flutter/flutter/issues/49627#issuecomment-1265222623

We can have this config (maybe it could be nice to have it by default in your package)


config: const Config(
  emojiTextStyle: TextStyle(
    fontFamilyFallback: [
      'Apple Color Emoji',
      'Noto Color Emoji',
    ],
  ),
),

On my side I've surrounded with my theme the fontFamilyFallback (to well display also on text field/content and so)

Fintasys commented 7 months ago

@stact thanks for sharing the workaround ! Seems Someone else created a PR to fix this issue more permanently, I will look into it. https://github.com/Fintasys/emoji_picker_flutter/pull/172