MiuixTabRow constructor
const
MiuixTabRow({
- Key? key,
- required List<
String> tabs, - required int selectedTabIndex,
- required ValueChanged<
int> onTabSelected, - MiuixTabRowColors? colors,
- double minWidth = MiuixTabRowDefaults.tabRowMinWidth,
- double maxWidth = MiuixTabRowDefaults.tabRowMaxWidth,
- double height = MiuixTabRowDefaults.tabRowHeight,
- double cornerRadius = MiuixTabRowDefaults.tabRowCornerRadius,
- double itemSpacing = MiuixTabRowDefaults.tabRowItemSpacing,
- AlignmentGeometry contentAlignment = Alignment.center,
- 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,
});