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.
MorphTabs
const MorphTabs({
super.key,
required this.tabs,
this.size,
this.initialIndex = 0,
this.selectedIndex,
this.onChanged,
this.enabled = true,
this.swipeable = true,
this.swipeThreshold = .2,
this.lazy = true,
this.barPosition = MorphTabsBarPosition.top,
this.contentHeight,
this.contentSpacing,
this.height,
this.iconSize,
this.fontSize,
this.spacing = 0,
this.iconLabelSpacing,
this.barPadding,
this.barDecoration,
this.backgroundColor,
this.selectedBackgroundColor,
this.foregroundColor,
this.selectedForegroundColor,
this.selectedDecoration,
this.borderRadius,
this.animationDuration,
this.animationCurve,
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
tabs | List<MorphTab> | Yes | — |
size | ComponentSize? | No | null |
initialIndex | int | No | 0 |
selectedIndex | int? | No | null |
onChanged | ValueChanged<int>? | No | null |
enabled | bool | No | true |
swipeable | bool | No | true |
swipeThreshold | double | No | .2 |
lazy | bool | No | true |
barPosition | MorphTabsBarPosition | No | MorphTabsBarPosition.top |
contentHeight | double? | No | null |
contentSpacing | double? | No | null |
height | double? | No | null |
iconSize | double? | No | null |
fontSize | double? | No | null |
spacing | double | No | 0 |
iconLabelSpacing | double? | No | null |
barPadding | EdgeInsetsGeometry? | No | null |
barDecoration | Decoration? | No | null |
backgroundColor | Color? | No | null |
selectedBackgroundColor | Color? | No | null |
foregroundColor | Color? | No | null |
selectedForegroundColor | Color? | No | null |
selectedDecoration | Decoration? | No | null |
borderRadius | double? | No | null |
animationDuration | Duration? | No | null |
animationCurve | Curve? | No | null |
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/morph_tabs/morph_tabs.dart
This reference is generated from the MorphTabs declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

