MiuixTabRow constructor

const MiuixTabRow({
  1. Key? key,
  2. required List<String> tabs,
  3. required int selectedTabIndex,
  4. required ValueChanged<int> onTabSelected,
  5. MiuixTabRowColors? colors,
  6. double minWidth = MiuixTabRowDefaults.tabRowMinWidth,
  7. double maxWidth = MiuixTabRowDefaults.tabRowMaxWidth,
  8. double height = MiuixTabRowDefaults.tabRowHeight,
  9. double cornerRadius = MiuixTabRowDefaults.tabRowCornerRadius,
  10. double itemSpacing = MiuixTabRowDefaults.tabRowItemSpacing,
  11. AlignmentGeometry contentAlignment = Alignment.center,
  12. ScrollController? scrollController,
})

Implementation

const MiuixTabRow({
  super.key,
  required this.tabs,
  required this.selectedTabIndex,
  required this.onTabSelected,
  this.colors,
  this.minWidth = MiuixTabRowDefaults.tabRowMinWidth,
  this.maxWidth = MiuixTabRowDefaults.tabRowMaxWidth,
  this.height = MiuixTabRowDefaults.tabRowHeight,
  this.cornerRadius = MiuixTabRowDefaults.tabRowCornerRadius,
  this.itemSpacing = MiuixTabRowDefaults.tabRowItemSpacing,
  this.contentAlignment = Alignment.center,
  this.scrollController,
});