小部件在颤动时的故障效果?
Glitch effect for widgets on flutter?
我怎样才能在 flutter 中获得如上图所示的毛刺效果?我希望我的小部件随机出现故障。
https://giphy.com/explore/glitch
类似的东西,但比图片中的更强烈。我怎样才能将这样的效果应用于 flutter 上的小部件?所以他们会随机出现故障,并产生这种效果。
几周前我在试验毛刺效果。也许它会给你一些想法如何实现你想要的。 https://github.com/kherel/flutter_fun
看看这个包:https://pub.dev/packages/glitcheffect
实现起来非常简单。只需将您的小部件包裹在 GlitchEffect 小部件中。
GlithEffect(
child: Text(
'Flutter',
style: TextStyle(fontSize: 30, color: Colors.red),
),
);
我怎样才能在 flutter 中获得如上图所示的毛刺效果?我希望我的小部件随机出现故障。
https://giphy.com/explore/glitch
类似的东西,但比图片中的更强烈。我怎样才能将这样的效果应用于 flutter 上的小部件?所以他们会随机出现故障,并产生这种效果。
几周前我在试验毛刺效果。也许它会给你一些想法如何实现你想要的。 https://github.com/kherel/flutter_fun
看看这个包:https://pub.dev/packages/glitcheffect
实现起来非常简单。只需将您的小部件包裹在 GlitchEffect 小部件中。
GlithEffect(
child: Text(
'Flutter',
style: TextStyle(fontSize: 30, color: Colors.red),
),
);