FloatyActionButton class

A model class for customizing a floating action button within a navigation bar.

The FloatyActionButton allows you to specify a widget, action (onTap), size, background color, and foreground color for a floating action button.

Constructors

FloatyActionButton({required Widget icon, required VoidCallback onTap, double? size = 50, Color? backgroundColor, Color? foregroundColor, double? elevation})
Creates a FloatyActionButton with the given widget, onTap, and optional customization options for size, background color, and foreground color.

Properties

backgroundColor Color?
The background color of the floating action button.
final
elevation double?
elevation of the floating action button.
final
foregroundColor Color?
The foreground color of the floating action button widget.
final
hashCode int
The hash code for this object.
no setterinherited
icon Widget
The widget displayed inside the floating action button.
final
onTap VoidCallback
The callback function that is invoked when the button is pressed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size double?
The size of the floating action button.
final

Methods

copyWith({Widget? icon, VoidCallback? onTap, double? size, Color? backgroundColor, Color? foregroundColor, double? elevation}) FloatyActionButton
Returns a copy of this FloatyActionButton with the option to modify any of the properties.
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