FloatyTab class

A class that represents a tab in a floating navigation bar.

FloatyTab contains information about the tab's state, appearance, and actions. Each tab can have an associated icon, title, and a floating action button for additional functionality.

Constructors

FloatyTab({required bool isSelected, required String title, required VoidCallback onTap, required Widget icon, TextStyle? titleStyle, FloatyActionButton? floatyActionButton, EdgeInsetsGeometry margin = const EdgeInsets.all(4), Color? selectedColor, Color? unselectedColor})
Creates a FloatyTab instance with the specified properties.
const

Properties

floatyActionButton FloatyActionButton?
An optional floating action button associated with the tab.
final
hashCode int
The hash code for this object.
no setterinherited
icon Widget
The icon displayed on the tab.
final
isSelected bool
Indicates whether the tab is currently selected.
final
margin EdgeInsetsGeometry
The margin around the tab, defaulting to 4 pixels on all sides.
final
onTap VoidCallback
A callback function that is called when the tab is tapped.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedColor Color?
The color of the tab when it is selected.
final
title String
The title text displayed on the tab.
final
titleStyle TextStyle?
The style applied to the title text.
final
unselectedColor Color?
The color of the tab when it is unselected.
final

Methods

copyWith({bool? isSelected, String? title, TextStyle? titleStyle, Widget? icon, VoidCallback? onTap, FloatyActionButton? floatyActionButton, EdgeInsetsGeometry? margin, Color? selectedColor, Color? unselectedColor}) FloatyTab
Creates a copy of the current FloatyTab instance with optional modifications.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited