TabView constructor
const
TabView({
- Key? key,
- required int currentIndex,
- ValueChanged<
int> ? onChanged, - required List<
Tab> tabs, - VoidCallback? onNewPressed,
- IconData addIconData = FluentIcons.add,
- Widget addIconBuilder(
- Widget addIcon
- bool shortcutsEnabled = true,
- ReorderCallback? onReorder,
- bool showScrollButtons = true,
- ScrollPosController? scrollController,
- double minTabWidth = _kMinTileWidth,
- double maxTabWidth = _kMaxTileWidth,
- CloseButtonVisibilityMode closeButtonVisibility = CloseButtonVisibilityMode.always,
- TabWidthBehavior tabWidthBehavior = TabWidthBehavior.equal,
- Widget? header,
- Duration closeDelayDuration = const Duration(milliseconds: 400),
Implementation
const TabView({
super.key,
required this.currentIndex,
this.onChanged,
required this.tabs,
this.onNewPressed,
this.addIconData = FluentIcons.add,
this.addIconBuilder,
this.shortcutsEnabled = true,
this.onReorder,
this.showScrollButtons = true,
this.scrollController,
this.minTabWidth = _kMinTileWidth,
this.maxTabWidth = _kMaxTileWidth,
this.closeButtonVisibility = CloseButtonVisibilityMode.always,
this.tabWidthBehavior = TabWidthBehavior.equal,
this.header,
this.footer,
this.closeDelayDuration = const Duration(milliseconds: 400),
});