FloaticaMenu class
Configuration for an optional expandable menu in the FloaticaNavBar.
When provided, the menu renders as a tab in the navigation bar. Tapping it expands the nav bar upward to reveal a custom child widget above the tabs.
Constructors
-
FloaticaMenu({required Widget child, required Widget icon, double? height, String title = 'More', TextStyle? titleStyle, Duration? animationDuration, Curve? animationCurve, Color? selectedColor, Color? unselectedColor, FloaticaTabDisplayMode selectedDisplayMode = FloaticaTabDisplayMode.iconAndTitle, FloaticaTabDisplayMode unselectedDisplayMode = FloaticaTabDisplayMode.iconOnly, double iconSize = 22.0, double selectedIconSize = 24.0, FloaticaLabelPosition labelPosition = FloaticaLabelPosition.right, EdgeInsetsGeometry margin = const EdgeInsets.all(4), ValueChanged<
bool> ? onMenuToggle, Color barrierColor = const Color(0x40000000), double barrierBlur = 4.0, FloaticaMenuController? controller}) -
Creates a FloaticaMenu configuration.
const
Properties
- animationCurve → Curve?
-
The curve of the expand/collapse animation.
final
- animationDuration → Duration?
-
The duration of the expand/collapse animation.
final
- barrierBlur → double
-
The blur intensity of the barrier overlay shown behind the nav bar.
final
- barrierColor → Color
-
The color of the barrier overlay shown behind the nav bar when the menu is open.
final
- child → Widget
-
The widget displayed inside the expanded menu area.
final
- controller → FloaticaMenuController?
-
An optional controller to programmatically open, close, or toggle the menu.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
The height of the expanded menu area.
final
- icon → Widget
-
The icon shown on the menu tab in the navigation bar.
final
- iconSize → double
-
The size of the icon when the menu tab is not selected.
final
- labelPosition → FloaticaLabelPosition
-
The position of the label relative to the icon.
final
- margin → EdgeInsetsGeometry
-
The margin around the menu tab.
final
-
onMenuToggle
→ ValueChanged<
bool> ? -
Called when the menu opens or closes.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedColor → Color?
-
The color of the menu tab when selected (menu is open).
final
- selectedDisplayMode → FloaticaTabDisplayMode
-
Display mode when the menu tab is selected (menu is open).
final
- selectedIconSize → double
-
The size of the icon when the menu tab is selected.
final
- title → String
-
The title label for the menu tab.
final
- titleStyle → TextStyle?
-
Custom text style for the menu tab title.
final
- unselectedColor → Color?
-
The color of the menu tab when unselected (menu is closed).
final
- unselectedDisplayMode → FloaticaTabDisplayMode
-
Display mode when the menu tab is not selected (menu is closed).
final
Methods
-
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