RegionBar constructor

RegionBar({
  1. required void onChanged(
    1. int index
    ),
  2. required List<String> menuTexts,
  3. Color? bgColor,
  4. TabController? controller,
  5. Color? labelColor,
  6. TextStyle? labelStyle,
  7. Color? unselectedLabelColor,
  8. Color? selectedColor,
})

Implementation

RegionBar(
    {required this.onChanged,
    required this.menuTexts,
    this.bgColor,
    this.controller,
    this.labelColor,
    this.labelStyle,
    this.unselectedLabelColor,
    this.selectedColor}) {
  bgColor ??= Get.find<AppColors>().btnColor;
  selectedColor ??= Get.find<AppColors>().backgroundColor;
  labelColor ??= Get.find<AppColors>().textColor;
  unselectedLabelColor ??= Get.find<AppColors>().hintColor;
  labelStyle ??= Get.find<AppFonts>().S(isBold: true);
}