FancyTabs constructor

const FancyTabs({
  1. Key? key,
  2. required List<String> tabs,
  3. required List<Widget> pages,
  4. Color selectedColor = Colors.deepPurple,
  5. Color unselectedColor = Colors.grey,
  6. Color indicatorColor = Colors.deepPurple,
  7. double indicatorHeight = 4.0,
  8. TextStyle? selectedTextStyle,
  9. TextStyle? unselectedTextStyle,
})

Implementation

const FancyTabs({
  super.key,
  required this.tabs,
  required this.pages,
  this.selectedColor = Colors.deepPurple,
  this.unselectedColor = Colors.grey,
  this.indicatorColor = Colors.deepPurple,
  this.indicatorHeight = 4.0,
  this.selectedTextStyle,
  this.unselectedTextStyle,
}) : assert(tabs.length == pages.length, 'Tabs and pages must be the same length');