Inheritance
System.Object
MaterialButton
public class MaterialButton : StatelessWidget
Constructors
MaterialButton(Key, VoidCallback, ValueChanged<Boolean>, Nullable<ButtonTextTheme>, Color, Color, Color, Color, Color, Color, Nullable<Brightness>, Nullable<Single>, Nullable<Single>, Nullable<Single>, EdgeInsets, ShapeBorder, Nullable<Clip>, Nullable<MaterialTapTargetSize>, Nullable<TimeSpan>, Nullable<Single>, Nullable<Single>, Widget)
Declaration
public MaterialButton(Key key = null, VoidCallback onPressed = null, ValueChanged<bool> onHighlightChanged = null, ButtonTextTheme? textTheme = default(ButtonTextTheme? ), Color textColor = null, Color disabledTextColor = null, Color color = null, Color disabledColor = null, Color highlightColor = null, Color splashColor = null, Brightness? colorBrightness = default(Brightness? ), float? elevation = default(float? ), float? highlightElevation = default(float? ), float? disabledElevation = default(float? ), EdgeInsets padding = null, ShapeBorder shape = null, Clip? clipBehavior, MaterialTapTargetSize? materialTapTargetSize = default(MaterialTapTargetSize? ), TimeSpan? animationDuration = default(TimeSpan? ), float? minWidth = default(float? ), float? height = default(float? ), Widget child = null)
Parameters
Type |
Name |
Description |
Key |
key |
|
VoidCallback |
onPressed |
|
ValueChanged<System.Boolean> |
onHighlightChanged |
|
System.Nullable<ButtonTextTheme> |
textTheme |
|
Color |
textColor |
|
Color |
disabledTextColor |
|
Color |
color |
|
Color |
disabledColor |
|
Color |
highlightColor |
|
Color |
splashColor |
|
System.Nullable<Brightness> |
colorBrightness |
|
System.Nullable<System.Single> |
elevation |
|
System.Nullable<System.Single> |
highlightElevation |
|
System.Nullable<System.Single> |
disabledElevation |
|
EdgeInsets |
padding |
|
ShapeBorder |
shape |
|
System.Nullable<Clip> |
clipBehavior |
|
System.Nullable<MaterialTapTargetSize> |
materialTapTargetSize |
|
System.Nullable<System.TimeSpan> |
animationDuration |
|
System.Nullable<System.Single> |
minWidth |
|
System.Nullable<System.Single> |
height |
|
Widget |
child |
|
Fields
Declaration
public readonly TimeSpan? animationDuration
Field Value
Type |
Description |
System.Nullable<System.TimeSpan> |
|
Declaration
public readonly Widget child
Field Value
Declaration
public readonly Clip? clipBehavior
Field Value
Type |
Description |
System.Nullable<Clip> |
|
Declaration
public readonly Color color
Field Value
Declaration
public readonly Brightness? colorBrightness
Field Value
Declaration
public readonly Color disabledColor
Field Value
Declaration
public readonly float? disabledElevation
Field Value
Type |
Description |
System.Nullable<System.Single> |
|
disabledTextColor
Declaration
public readonly Color disabledTextColor
Field Value
Declaration
public readonly float? elevation
Field Value
Type |
Description |
System.Nullable<System.Single> |
|
Declaration
public readonly float? height
Field Value
Type |
Description |
System.Nullable<System.Single> |
|
Declaration
public readonly Color highlightColor
Field Value
Declaration
public readonly float? highlightElevation
Field Value
Type |
Description |
System.Nullable<System.Single> |
|
Declaration
public readonly MaterialTapTargetSize? materialTapTargetSize
Field Value
Declaration
public readonly float? minWidth
Field Value
Type |
Description |
System.Nullable<System.Single> |
|
Declaration
public readonly ValueChanged<bool> onHighlightChanged
Field Value
Declaration
public readonly VoidCallback onPressed
Field Value
Declaration
public readonly EdgeInsets padding
Field Value
Declaration
public readonly ShapeBorder shape
Field Value
Declaration
public readonly Color splashColor
Field Value
textColor
Declaration
public readonly Color textColor
Field Value
textTheme
Declaration
public readonly ButtonTextTheme? textTheme
Field Value
Properties
Declaration
public bool enabled { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
build(BuildContext)
Declaration
public override Widget build(BuildContext context)
Parameters
Returns
Overrides
Declaration
public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
Parameters
Overrides