Inheritance
System.Object
FloatingActionButton
public class FloatingActionButton : StatelessWidget
Constructors
Declaration
public FloatingActionButton(Key key = null, Widget child = null, string tooltip = null, Color foregroundColor = null, Color backgroundColor = null, object heroTag = null, float elevation = 6F, float highlightElevation = 12F, VoidCallback onPressed = null, bool mini = false, ShapeBorder shape = null, Clip clipBehavior = Clip.none, MaterialTapTargetSize? materialTapTargetSize = default(MaterialTapTargetSize? ), bool isExtended = false)
Parameters
Type |
Name |
Description |
Key |
key |
|
Widget |
child |
|
System.String |
tooltip |
|
Color |
foregroundColor |
|
Color |
backgroundColor |
|
System.Object |
heroTag |
|
System.Single |
elevation |
|
System.Single |
highlightElevation |
|
VoidCallback |
onPressed |
|
System.Boolean |
mini |
|
ShapeBorder |
shape |
|
Clip |
clipBehavior |
|
System.Nullable<MaterialTapTargetSize> |
materialTapTargetSize |
|
System.Boolean |
isExtended |
|
Fields
Declaration
public readonly BoxConstraints _sizeConstraints
Field Value
Declaration
public readonly Color backgroundColor
Field Value
Declaration
public readonly Widget child
Field Value
Declaration
public readonly Clip clipBehavior
Field Value
Declaration
public readonly float? disabledElevation
Field Value
Type |
Description |
System.Nullable<System.Single> |
|
Declaration
public readonly float elevation
Field Value
Type |
Description |
System.Single |
|
Declaration
public readonly Color foregroundColor
Field Value
Declaration
public readonly object heroTag
Field Value
Type |
Description |
System.Object |
|
Declaration
public readonly float highlightElevation
Field Value
Type |
Description |
System.Single |
|
Declaration
public readonly bool isExtended
Field Value
Type |
Description |
System.Boolean |
|
Declaration
public readonly MaterialTapTargetSize? materialTapTargetSize
Field Value
Declaration
public readonly bool mini
Field Value
Type |
Description |
System.Boolean |
|
Declaration
public readonly VoidCallback onPressed
Field Value
Declaration
public readonly ShapeBorder shape
Field Value
Declaration
public readonly string tooltip
Field Value
Type |
Description |
System.String |
|
Methods
build(BuildContext)
Declaration
public override Widget build(BuildContext context)
Parameters
Returns
Overrides
Declaration
public static FloatingActionButton extended(Key key = null, string tooltip = null, Color foregroundColor = null, Color backgroundColor = null, object heroTag = null, float elevation = 6F, float highlightElevation = 12F, float? disabledElevation = default(float? ), VoidCallback onPressed = null, ShapeBorder shape = null, bool isExtended = true, MaterialTapTargetSize? materialTapTargetSize = default(MaterialTapTargetSize? ), Clip clipBehavior = Clip.none, Widget icon = null, Widget label = null)
Parameters
Type |
Name |
Description |
Key |
key |
|
System.String |
tooltip |
|
Color |
foregroundColor |
|
Color |
backgroundColor |
|
System.Object |
heroTag |
|
System.Single |
elevation |
|
System.Single |
highlightElevation |
|
System.Nullable<System.Single> |
disabledElevation |
|
VoidCallback |
onPressed |
|
ShapeBorder |
shape |
|
System.Boolean |
isExtended |
|
System.Nullable<MaterialTapTargetSize> |
materialTapTargetSize |
|
Clip |
clipBehavior |
|
Widget |
icon |
|
Widget |
label |
|
Returns