Attention! In Flutter 3.7 the Badge widget was introduced in the Material library, so to escape the ambiguous imports you need to import the package like this:
Option 1: namespace prefix
import'package:badges/badges.dart'as badges;
and then use the "badges.Badge" widget instead of the "Badge" widget. The same for all the classes from this package.
From left to right:
1) Color change animation
2) BadgeAnimation.slide
3) BadgeAnimation.fade
4) BadgeAnimation.scale
5) BadgeAnimation.size
6) BadgeAnimation.rotation
Also, loop animation is available, this will loop the animation until you stop it.
Shapes:
From left to right:
1) BadgeShape.circle
2) BadgeShape.square
3) BadgeShape.twitter
4) BadgeShape.instagram