RippleButton class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- RippleButton
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(), Widget? icon})
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 isRippleButtonBorder())
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 isRippleButtonColor())
final - hashCode → int
-
The hash code for this object.
no setterinherited
- 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
- icon → Widget?
-
Widget expects an icon or image icon to show before the button text.
Optional, if not provided, only shows text
final
- isEnabled → bool
-
isEnabled expects a
boolean
This will enable or disable buttonfinal - key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- 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.
no setterinherited
- 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 isRippleButtonStyle())
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 isRippleButtonType.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.inherited -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent 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.
inherited