getBadgeMaterial function
dynamic
getBadgeMaterial(})
Implementation
getBadgeMaterial(String item,
{Color materialColors = Colors.deepOrange,
Color materialShadowColor = Colors.red,
Color textColor = Colors.white,
double materialElevation = 5.0,
double fontSize= 12.0,
FontWeight fontWeight= FontWeight.bold,
double width= 25
})
{
return Material(
color: materialColors,
elevation: materialElevation,
shadowColor: materialShadowColor,
borderRadius: BorderRadius.circular(5.0),
child: Container(
width: width,
height: 25,
alignment: Alignment.center,
decoration: BoxDecoration(
color: materialColors,
borderRadius: BorderRadius.circular(5.0),
),
child: Text(
item,
style: TextStyle(
color: textColor, fontSize: fontSize, fontWeight: fontWeight),
),
),
);
}