RegionBar constructor

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

Implementation

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