MiuixTabRowWithContour constructor

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

Implementation

const MiuixTabRowWithContour({
  super.key,
  required this.tabs,
  required this.selectedTabIndex,
  required this.onTabSelected,
  this.colors,
  this.minWidth = MiuixTabRowDefaults.tabRowWithContourMinWidth,
  this.maxWidth = MiuixTabRowDefaults.tabRowWithContourMaxWidth,
  this.height = MiuixTabRowDefaults.tabRowWithContourHeight,
  this.cornerRadius = MiuixTabRowDefaults.tabRowWithContourCornerRadius,
  this.itemSpacing = MiuixTabRowDefaults.contourItemSpacing,
  this.contentAlignment = Alignment.center,
  this.scrollController,
});