LRaisedButton class

LButton with elevation

Inheritance

Constructors

LRaisedButton({Key key, LElementType type, LElementShape shape = LElementShape.standard, void onMouseEnter(PointerEnterEvent), void onMouseExit(PointerExitEvent), void onMouseHover(PointerHoverEvent), void onLongPress(), void onHighlightChanged(bool), TextStyle textStyle, TextStyle disabledTextStyle, Color disabledColor, Color fillColor, Color focusColor, Color hoverColor, Color highlightColor, Color splashColor, double elevation, double focusElevation, double hoverElevation, double highlightElevation, double disabledElevation, EdgeInsets padding, EdgeInsetsGeometry margin, VisualDensity visualDensity = const VisualDensity(), BoxConstraints constraints, ShapeBorder buttonShape, Duration animationDuration = kThemeChangeDuration, Clip clipBehavior = Clip.none, FocusNode focusNode, bool autofocus = false, Widget child, bool enableFeedback = true, void onPressed(), MaterialTapTargetSize materialTapTargetSize, LElementSize size, LRaisedButtonPushAction pushAction = LRaisedButtonPushAction.elevate})
LButton with elevation
const
LRaisedButton.icon({Key key, LElementType type, LElementShape shape = LElementShape.standard, void onMouseEnter(PointerEnterEvent), void onMouseExit(PointerExitEvent), void onMouseHover(PointerHoverEvent), void onLongPress(), void onHighlightChanged(bool), TextStyle textStyle, TextStyle disabledTextStyle, Color disabledColor, Color fillColor, Color focusColor, Color hoverColor, Color highlightColor, Color splashColor, double elevation, double focusElevation, double hoverElevation, double highlightElevation, double disabledElevation, EdgeInsets padding, EdgeInsetsGeometry margin, VisualDensity visualDensity = const VisualDensity(), BoxConstraints constraints, ShapeBorder buttonShape, Duration animationDuration = kThemeChangeDuration, Clip clipBehavior = Clip.none, FocusNode focusNode, bool autofocus = false, @required Widget icon, @required Widget label, bool enableFeedback = true, void onPressed(), MaterialTapTargetSize materialTapTargetSize, Axis direction, LElementSize size, double spacing, LRaisedButtonPushAction pushAction = LRaisedButtonPushAction.elevate})
LRaisedButton with icon and label
factory
LRaisedButton.text({Key key, LElementType type, LElementShape shape = LElementShape.standard, void onMouseEnter(PointerEnterEvent), void onMouseExit(PointerExitEvent), void onMouseHover(PointerHoverEvent), void onLongPress(), void onHighlightChanged(bool), TextStyle textStyle, TextStyle disabledTextStyle, Color disabledColor, Color fillColor, Color focusColor, Color hoverColor, Color highlightColor, Color splashColor, double elevation, double focusElevation, double hoverElevation, double highlightElevation, double disabledElevation, EdgeInsets padding, EdgeInsetsGeometry margin, VisualDensity visualDensity = const VisualDensity(), BoxConstraints constraints, ShapeBorder buttonShape, Duration animationDuration = kThemeChangeDuration, Clip clipBehavior = Clip.none, FocusNode focusNode, bool autofocus = false, @required String text, bool enableFeedback = true, void onPressed(), MaterialTapTargetSize materialTapTargetSize, LElementSize size, LRaisedButtonPushAction pushAction = LRaisedButtonPushAction.elevate})
LRaisedButton with text
factory

Properties

animationDuration Duration
finalinherited
autofocus bool
finalinherited
buttonShape ShapeBorder
Base class for shape outlines.
finalinherited
child Widget
finalinherited
clipBehavior Clip
finalinherited
constraints BoxConstraints
Immutable layout constraints for RenderBox layout.
finalinherited
disabledColor Color
When Button disabled
finalinherited
disabledElevation double
Button elevation on disabled
finalinherited
disabledTextStyle TextStyle
Disables text style
finalinherited
elevation double
Button elevation
finalinherited
enabled bool
read-onlyinherited
enableFeedback bool
finalinherited
fillColor Color
Button background color
finalinherited
focusColor Color
Button Background color on focus
finalinherited
focusElevation double
Button elevation on focus
finalinherited
focusNode FocusNode
finalinherited
hashCode int
The hash code for this object.
@nonVirtualread-onlyinherited
highlightColor Color
Button Background color for highlight
finalinherited
highlightElevation double
Button elevation on highlight
finalinherited
hoverColor Color
Button Background color on hover
finalinherited
hoverElevation double
Button elevation on hover
finalinherited
key Key
Controls how one widget replaces another widget in the tree.
finalinherited
margin EdgeInsetsGeometry
Button Margin
finalinherited
materialTapTargetSize MaterialTapTargetSize
finalinherited
onHighlightChanged → void Function(bool)
finalinherited
onLongPress VoidCallback
finalinherited
onMouseEnter → void Function(PointerEnterEvent)
finalinherited
onMouseExit → void Function(PointerExitEvent)
finalinherited
onMouseHover → void Function(PointerHoverEvent)
finalinherited
onPressed VoidCallback
finalinherited
padding EdgeInsetsGeometry
Button Padding
finalinherited
pushAction LRaisedButtonPushAction
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
shape LElementShape
Button Shape
finalinherited
size LElementSize
finalinherited
splashColor Color
inkspread color
finalinherited
textStyle TextStyle
Styles Button text LButton.text
finalinherited
type LElementType
Button type
finalinherited
visualDensity VisualDensity
Defines the visual density of user interface components. Density, in the context of a UI, is the vertical and horizontal "compactness" of the components in the UI. It is unitless, since it means different things to different UI components.
finalinherited

Methods

copyWith({EdgeInsetsGeometry padding, EdgeInsetsGeometry margin, BoxConstraints constraints, ShapeBorder buttonShape, MaterialTapTargetSize materialTapTargetSize, LElementShape shape, LElementSize size}) LRaisedButton
override
createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _LButtonState
Creates the mutable state for this widget at a given location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
@protectedinherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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}) 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.
@nonVirtualinherited