Glitch effect for widgets on flutter?

Viewed 613

enter image description here

How could I get a glitch effect, like in the image above in flutter? I want my widgets to randomly glitch out.

https://giphy.com/explore/glitch

Something like that, but a lot more intense like in the pictures. How could I apply an effect like that to widgets on flutter? So that they randomly glitch out, and give that effect.

2 Answers

Take a look at this package: https://pub.dev/packages/glitcheffect

It is very easy to implement. Simply wrap your widget in the GlitchEffect Widget.

GlithEffect(
  child: Text(
   'Flutter',
   style: TextStyle(fontSize: 30, color: Colors.red),
  ),
);
Related