LumenFab class
Themed floating action button with compact and extended layouts.
The compact layout shows an icon and has equal width and height. The extended layout also shows label. Both use the active style's radius.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- LumenFab
Constructors
- LumenFab({required IconData icon, required VoidCallback? onPressed, Key? key, String? label, bool busy = false, Gradient? gradient, Color? glowColor, Color? foregroundColor, double size = 56, Object? heroTag, String? semanticLabel})
-
Creates a compact or extended FAB when
labelis entered.const - LumenFab.extended({required IconData icon, required VoidCallback? onPressed, required String label, Key? key, bool busy = false, Gradient? gradient, Color? glowColor, Color? foregroundColor, Object? heroTag})
-
Explicit constructor for extended mode.
const
Properties
- busy → bool
-
Whether to display progress indicator and blocks ringing.
final
- foregroundColor → Color?
-
Text/icon color.
final
- glowColor → Color?
-
Glow color (boxShadow).
final
- gradient → Gradient?
-
Button gradient.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- heroTag → Object?
-
Tag used to wrap the button in a Hero when provided.
final
- icon → IconData
-
Icon displayed on the button.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → String?
-
If entered, it becomes extended FAB (icon + text).
final
- onPressed → VoidCallback?
-
Callback executed when touching the FAB.
When
null, the FAB is visually disabled.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semanticLabel → String?
-
Label for screen readers in compact mode (icon only).
final
- size → double
-
Diameter in compact mode.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited