RippleButton class Null safety

Inheritance

Constructors

RippleButton(String text, {dynamic onPressed()?, bool isEnabled = true, EdgeInsets padding = EdgeInsets.zero, String? heroTag, RippleButtonType type = RippleButtonType.NONE, RippleButtonStyle style = const RippleButtonStyle(), RippleButtonColor color = const RippleButtonColor(), RippleButtonBorder border = const RippleButtonBorder()})

Properties

border RippleButtonBorder
color expects a RippleButtonBorder This will change the border from the Ripple Button Send values for your custom Ripple Button If you send any Ripple Button type, this may not be used. default value is RippleButtonBorder())
final
color RippleButtonColor
color expects a RippleButtonColor This will change the color from the Ripple Button Send values for your custom Ripple Button If you send any Ripple Button type, this may not be used. default value is RippleButtonColor())
final
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
heroTag String?
heroTag expects a String This will add a hero tag to the ripple button Use this to configure flutter hero animations https://flutter.dev/docs/development/ui/animations/hero-animations
final
isEnabled bool
isEnabled expects a boolean This will enable or disable button
final
key Key?
Controls how one widget replaces another widget in the tree. [...]
final, inherited
onPressed → (dynamic Function?()?)
onPressed expects a function that will be executed on button press.
final
padding EdgeInsets
padding expects a EdgeInsets This will change the padding of button to other widgets [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
style RippleButtonStyle
style expects a RippleButtonStyle This will change the style from the Ripple Button Send values for your custom Ripple Button If you send any Ripple Button type, this may not be used. default value is RippleButtonStyle())
final
text String
text expects a String This will change the text inside the button
final
type RippleButtonType
This are pre-config designs for the ripple button This is optional, if not set The widget will use your design for the button default value is RippleButtonType.none (set your own custom design)
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. [...]
@protected, inherited
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. [...]
@nonVirtual, inherited