Skip to content
On this page

BottomNavigation

A bottom navigation surface for switching top-level destinations.

BottomNavigation in FluttyUIBottomNavigation 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.

BottomNavigation

const BottomNavigation({
  super.key,
  required this.items,
  this.size,
  this.borderRadius,
  required this.selectedIndex,
  required this.onChanged,
  this.height,
  this.width,
  this.navigationPlacement = NavigationPlacement.automatic,
  this.motion,
  this.itemOverlap,
  this.margin,
  this.useSafeArea = true,
  this.hapticFeedback = true,
  this.foregroundColor,
  this.labelStyle,
});
ParameterTypeRequiredDefault
keyKey?Nonull
itemsList<BottomNavigationItem>Yes—
sizeComponentSize?Nonull
borderRadiusdouble?Nonull
selectedIndexint?Yes—
onChangedValueChanged<int>?Yes—
heightdouble?Nonull
widthdouble?Nonull
navigationPlacementNavigationPlacementNoNavigationPlacement.automatic
motionBottomNavigationMotion?Nonull
itemOverlapdouble?Nonull
marginEdgeInsetsGeometry?Nonull
useSafeAreaboolNotrue
hapticFeedbackboolNotrue
foregroundColorColor?Nonull
labelStyleTextStyle?Nonull

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

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

DartFlutter

Get started with FluttyUI