GNCustomChip constructor
const
GNCustomChip({
- Key? key,
- required List<
String> chipLabels, - required List<
Widget> screens, - Color? selectedColor,
- bool isChipCenter = true,
- Color? unselectedColor = Colors.black54,
- Color? backgroundColor = Colors.white,
- double? fontSize,
- dynamic onTap(
- int index
- ScrollPhysics? physics,
- int? initialSelectedIndex,
Implementation
const GNCustomChip(
{super.key,
required this.chipLabels,
required this.screens,
this.selectedColor,
this.isChipCenter = true,
this.unselectedColor = Colors.black54,
this.backgroundColor = Colors.white,
this.fontSize,
this.onTap,
this.physics,
this.initialSelectedIndex})
: assert(
chipLabels.length == screens.length,
StringConst.CHIP_ERROR_MESSAGE,
);