chip method
Widget
chip({
- required Color backgroundColor,
- double? width,
- double? height,
- Alignment? alignment,
- double borderWidth = 1,
- double radius = 12,
- Color borderColor = Colors.transparent,
- EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 8, vertical: 6),
- EdgeInsetsGeometry? margin,
- BoxConstraints? constraints,
Pill-shaped colored box, e.g. for tags. Text("New").chip(backgroundColor: Colors.green.shade100)
Implementation
Widget chip({
required Color backgroundColor,
double? width,
double? height,
Alignment? alignment,
double borderWidth = 1,
double radius = 12,
Color borderColor = Colors.transparent,
EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 8, vertical: 6),
EdgeInsetsGeometry? margin,
BoxConstraints? constraints,
}) => container(
width: width,
height: height,
alignment: alignment,
backgroundColor: backgroundColor,
borderWidth: borderWidth,
radius: radius,
borderColor: borderColor,
padding: padding,
margin: margin,
constraints: constraints,
);