I am trying to add a notifications counter badge with using badges package with flutter but the project does not compile as soon as I add the below code. I'm using flutter v1.17.4
.
Badge(
badgeColor: Colors.deepOrangeAccent,
toAnimate: true,
child: IconButton(
icon: Icon(Icons.shopping_cart),
onPressed: (){
Navigator.push(context, MaterialPageRoute(builder: (context)=> ShoppingCart()));
}
)
),
When start debugging, flutter: No named parameter with the name 'clipBehavior', clipBehavior: Clip.none
displays. Is there any possible solution without Updating the version of flutter to latest version
?