Import
import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;API Reference
The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.
Tabs
const Tabs({
super.key,
required this.tabs,
this.size,
this.initialIndex = 0,
this.selectedIndex,
this.onChanged,
this.isScrollable = false,
this.alignment = MainAxisAlignment.start,
this.indicatorColor = const Color(0xFF006FEE),
this.labelColor,
this.unselectedLabelColor,
this.indicatorHeight = 2,
this.tabPadding,
this.tabBarPadding,
this.tabBarColor,
this.selectedTabColor,
this.tabBarRadius,
this.tabOverlap = TabBarStyle.overlap,
this.contentPadding = EdgeInsets.zero,
this.contentSpacing,
this.animationDuration,
this.showIndicator = false,
this.showDivider = false,
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
tabs | List<TabItem> | Yes | — |
size | ComponentSize? | No | null |
initialIndex | int | No | 0 |
selectedIndex | int? | No | null |
onChanged | ValueChanged<int>? | No | null |
isScrollable | bool | No | false |
alignment | MainAxisAlignment | No | MainAxisAlignment.start |
indicatorColor | Color | No | const Color(0xFF006FEE) |
labelColor | Color? | No | null |
unselectedLabelColor | Color? | No | null |
indicatorHeight | double | No | 2 |
tabPadding | EdgeInsetsGeometry? | No | null |
tabBarPadding | EdgeInsetsGeometry? | No | null |
tabBarColor | Color? | No | null |
selectedTabColor | Color? | No | null |
tabBarRadius | double? | No | null |
tabOverlap | double | No | TabBarStyle.overlap |
contentPadding | EdgeInsetsGeometry | No | EdgeInsets.zero |
contentSpacing | double? | No | null |
animationDuration | Duration? | No | null |
showIndicator | bool | No | false |
showDivider | bool | No | false |
Application Setup
Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.
Source
lib/src/widgets/navigation/tabs/tabs.dart
This reference is generated from the Tabs declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

