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.
FloatingButton
const FloatingButton({
super.key,
this.icon,
this.onPressed,
this.actions = const [],
this.isOpen,
this.onOpenChanged,
this.semanticLabel = 'Quick actions',
this.enabled = true,
this.size,
this.dimension,
this.iconSize,
this.borderRadius,
this.backgroundColor,
this.foregroundColor,
this.actionBackgroundColor,
this.backdrop = FloatingButtonBackdrop.dim,
this.backdropColor,
this.blur = 8,
this.gap,
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
icon | Widget? | No | null |
onPressed | VoidCallback? | No | null |
actions | List<FloatingButtonAction> | No | const [] |
isOpen | bool? | No | null |
onOpenChanged | ValueChanged<bool>? | No | null |
semanticLabel | String | No | 'Quick actions' |
enabled | bool | No | true |
size | ComponentSize? | No | null |
dimension | double? | No | null |
iconSize | double? | No | null |
borderRadius | double? | No | null |
backgroundColor | Color? | No | null |
foregroundColor | Color? | No | null |
actionBackgroundColor | Color? | No | null |
backdrop | FloatingButtonBackdrop | No | FloatingButtonBackdrop.dim |
backdropColor | Color? | No | null |
blur | double | No | 8 |
gap | double? | 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/buttons/floating_button/floating_button.dart
This reference is generated from the FloatingButton declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

