NeumorphicButton class

Inheritance

Constructors

NeumorphicButton({Key? key, Widget? child, required EdgeInsetsGeometry padding, required Color backgroundColor, required VoidCallback onTap, Color? brightShadowColor, Color? darkShadowColor, double? height, double? width, double borderRadius = 0, bool shouldClip = true, Alignment lightSource = Alignment.topLeft, double shadowBlurRadius = 2.0, double shadowOffsetMultiplier = 2.0})
const

Properties

backgroundColor Color
Color of neumorphic preferably the color of background
final
borderRadius double
specifies radius of neumorphic area
final
brightShadowColor Color?
Color of brighter shadow
final
child Widget?
Child of neumorphic
final
darkShadowColor Color?
Color of drakrer shadow
final
hashCode int
The hash code for this object.
no setterinherited
height double?
constrain height of neumorphic
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lightSource Alignment
Placement of light source. Be aware that center placement is not supported.
final
onTap VoidCallback
final
padding EdgeInsetsGeometry
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowBlurRadius double
final
shadowOffsetMultiplier double
final
shouldClip bool
specifies if content should be clipped along the edge
final
width double?
constrain width of neumorphic
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<NeumorphicButton>
Creates the mutable state for this widget at a given location in the tree.
override
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