AnimatedEmoji constructor

const AnimatedEmoji(
  1. AnimatedEmojiData emoji, {
  2. double? size,
  3. Animation<double>? controller,
  4. Key? key,
  5. bool repeat = true,
  6. bool animate = true,
  7. Widget? errorWidget,
  8. void onLoaded(
    1. Duration duration
    )?,
})

A widget that shows an animated emoji.

emoji defines which emoji is displayed.

The animation is repeadedly played by default. Change this behavior with repeat and animate.

To load the animated emoji, a internet connection is required.

This example shows how to create a emoji that animates once.

😀
const AnimatedEmoji(
 AnimatedEmojis.smile,
 size: 128,
 repeat: false,
),

Implementation

const AnimatedEmoji(
  this.emoji, {
  this.size,
  this.controller,
  super.key,
  this.repeat = true,
  this.animate = true,
  this.errorWidget,
  this.onLoaded,
});