JsonFloatingActionButton class

Inheritance

Constructors

JsonFloatingActionButton({Map<String, dynamic> args = const {}, JsonWidgetRegistry? registry, bool autofocus = false, Color? backgroundColor, Clip clipBehavior = Clip.none, double? disabledElevation, double? elevation, bool? enableFeedback, Color? focusColor, double? focusElevation, FocusNode? focusNode, Color? foregroundColor, Object? heroTag = '<default JsonWidget FloatingActionButton tag>', double? highlightElevation, Color? hoverColor, double? hoverElevation, bool isExtended = false, MaterialTapTargetSize? materialTapTargetSize, bool mini = false, MouseCursor? mouseCursor, required void onPressed()?, ShapeBorder? shape, Color? splashColor, String? tooltip, JsonWidgetData? child})

Properties

autofocus bool
True if this widget will be selected as the initial focus when no other node in its scope is currently focused.
final
backgroundColor Color?
The button's background color.
final
child JsonWidgetData?
The widget below this widget in the tree.
final
clipBehavior Clip
The content will be clipped (or not) according to this option.
final
disabledElevation double?
The z-coordinate at which to place this button when the button is disabled (onPressed is null).
final
elevation double?
The z-coordinate at which to place this button relative to its parent.
final
enableFeedback bool?
Whether detected gestures should provide acoustic and/or haptic feedback.
final
focusColor Color?
The color to use for filling the button when the button has input focus.
final
focusElevation double?
The z-coordinate at which to place this button relative to its parent when the button has the input focus.
final
focusNode FocusNode?
An optional focus node to use as the focus node for this widget.
final
foregroundColor Color?
The default foreground color for icons and text within the button.
final
hashCode int
The hash code for this object.
no setterinherited
heroTag Object?
The tag to apply to the button's Hero widget.
final
highlightElevation double?
The z-coordinate at which to place this button relative to its parent when the user is touching the button.
final
hoverColor Color?
The color to use for filling the button when the button has a pointer hovering over it.
final
hoverElevation double?
The z-coordinate at which to place this button relative to its parent when the button is enabled and has a pointer hovering over it.
final
isExtended bool
True if this is an "extended" floating action button.
final
jsonWidgetArgs → dynamic
finalinherited
jsonWidgetBuilder JsonWidgetBuilder Function()
finalinherited
jsonWidgetId String
finalinherited
jsonWidgetListenVariables Set<String>
finalinherited
jsonWidgetRegistry JsonWidgetRegistry
finalinherited
jsonWidgetType String
finalinherited
materialTapTargetSize MaterialTapTargetSize?
Configures the minimum size of the tap target.
final
mini bool
Controls the size of this button.
final
mouseCursor MouseCursor?
The cursor for a mouse pointer when it enters or is hovering over the button.
final
onPressed → (void Function()?)
The callback that is called when the button is tapped or otherwise activated.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shape ShapeBorder?
The shape of the button's Material.
final
splashColor Color?
The splash color for this FloatingActionButton's InkWell.
final
tooltip String?
Text that describes the action that will occur when the button is pressed.
final

Methods

build({ChildWidgetBuilder? childBuilder, required BuildContext context, JsonWidgetRegistry? registry}) Widget
Convenience method that can build the widget this data object represents. This is the equilivant of calling: builder.build and passing this in as the data parameter.
inherited
copyWith({dynamic jsonWidgetArgs, JsonWidgetBuilder? jsonWidgetBuilder, Set<String>? jsonWidgetListenVariables, String? jsonWidgetId, JsonWidgetRegistry? jsonWidgetRegistry, String? jsonWidgetType}) JsonWidgetData
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Abstract function that concrete classes must implement. This must encode the internal data model to a JSON compatible representation.
inherited
toString() String
Returns the string encoded JSON representation for this class. This will remove all null values and empty collections from the returned string.
inherited

Operators

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