Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter Web shows emojis in black&white

Tags:

flutter

In ios/android apps emojis are shown correctly. But using any web-browser (e.g. Chrome) the emoji appears in black and white. I also tried different Font-Families but with the same result.

class _MyHomePageState extends State<MyHomePage> {
      @override
      Widget build(BuildContext context) {
        return const Scaffold(
          body: Center(
            child: Text('Enjoy! 🥳 If there\'s any question')
          ),
        );
      }
    }

enter image description here enter image description here

like image 957
Timm Kent Avatar asked Dec 22 '25 04:12

Timm Kent


1 Answers

Due to the large size of the color emoji font (~24MB), the Flutter team made color emojis an opt-in feature in Flutter 3.10.0 (ref).

To enable it, set the useColorEmoji flag to true when initializing the engine in your index.html file:

engineInitializer.initializeEngine({
  // other config...
  useColorEmoji: true,
});
like image 51
David Miguel Avatar answered Dec 23 '25 18:12

David Miguel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!