FieldStyleChip constructor
FieldStyleChip({
- Color? backgroundColor,
- Color? selectedColor,
- double? headerSpacing = 5.0,
- OutlinedBorder shape = const RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(8))),
- BorderSide unselectedSide = const BorderSide(color: Color(0xffbfbbc5), width: 1),
- BorderSide selectedSide = const BorderSide(color: Color(0xffbfbbc5), width: 1),
- TextStyle labelStyle = const TextStyle(fontWeight: FontWeight.bold, color: Colors.black),
- TextStyle unselectedTextStyle = const TextStyle(fontWeight: FontWeight.bold, color: Colors.black),
- TextStyle selectedTextStyle = const TextStyle(fontWeight: FontWeight.bold, color: Colors.white),
- EdgeInsets padding = const EdgeInsets.all(8.0),
- double runSpacing = 8.0,
- double spacing = 8.0,
- Color checkmarkColor = Colors.white,
- MaterialTapTargetSize materialTapTargetSize = MaterialTapTargetSize.shrinkWrap,
- Color shadowColor = Colors.transparent,
- Color surfaceTintColor = Colors.transparent,
Implementation
FieldStyleChip({
this.backgroundColor,
this.selectedColor,
super.headerSpacing = 5.0,
super.footerSpacing = 5.0,
this.shape = const RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(8)),
),
this.unselectedSide = const BorderSide(color: Color(0xffbfbbc5), width: 1),
this.selectedSide = const BorderSide(color: Color(0xffbfbbc5), width: 1),
this.labelStyle = const TextStyle(
fontWeight: FontWeight.bold,
color: Colors.black,
),
this.unselectedTextStyle = const TextStyle(
fontWeight: FontWeight.bold,
color: Colors.black,
),
this.selectedTextStyle = const TextStyle(
fontWeight: FontWeight.bold,
color: Colors.white,
),
this.padding = const EdgeInsets.all(8.0),
this.runSpacing = 8.0,
this.spacing = 8.0,
this.checkmarkColor = Colors.white,
this.materialTapTargetSize = MaterialTapTargetSize.shrinkWrap,
this.shadowColor = Colors.transparent,
this.surfaceTintColor = Colors.transparent,
});