Skip to content
On this page

SwipeableTabs

A tab interface that also supports horizontal swipes.

SwipeableTabs in FluttyUISwipeableTabs in FluttyUI dark theme

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.

SwipeableTabs

const SwipeableTabs({
  super.key,
  required this.tabs,
  this.size,
  this.initialIndex = 0,
  this.onChanged,
  this.contentHeight = 360,
  this.tabBarColor,
  this.selectedTabColor,
  this.labelColor,
  this.unselectedLabelColor,
  this.tabPadding,
  this.tabBarPadding,
  this.tabSpacing = 0,
  this.tabOverlap = TabBarStyle.overlap,
  this.tabBarRadius,
  this.contentSpacing,
  this.animationDuration,
  this.showSelectedShadow = true,
});
ParameterTypeRequiredDefault
keyKey?Nonull
tabsList<SwipeableTab>Yes—
sizeComponentSize?Nonull
initialIndexintNo0
onChangedValueChanged<int>?Nonull
contentHeightdoubleNo360
tabBarColorColor?Nonull
selectedTabColorColor?Nonull
labelColorColor?Nonull
unselectedLabelColorColor?Nonull
tabPaddingEdgeInsetsGeometry?Nonull
tabBarPaddingEdgeInsetsGeometry?Nonull
tabSpacingdoubleNo0
tabOverlapdoubleNoTabBarStyle.overlap
tabBarRadiusdouble?Nonull
contentSpacingdouble?Nonull
animationDurationDuration?Nonull
showSelectedShadowboolNotrue

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/swipeable_tabs/swipeable_tabs.dart

This reference is generated from the SwipeableTabs declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

DartFlutter

Get started with FluttyUI