WOIParallalogramButton class

A button that is tilt from sides and accept a Text in the center

Here is how you can use the widget


WOIParallalogramButton(
  text: "Parallalogram Button",
  onPressed: () {},
)

Parallelogram Button

Inheritance

Constructors

WOIParallalogramButton({Key? key, VoidCallback? onPressed, Color buttonColor = Colors.black, Color? borderColor, double borderWdth = 1, double height = 50, double? width, List<BoxShadow>? boxShadow, double tilt = 10, required String text, TextStyle? textStyle, EdgeInsets? textMargin, TiltSide? tiltSide = TiltSide.right, Gradient? gradient})
const

Properties

borderColor Color?
Change/update border color
final
borderWdth double
To provide the border width for the button
final
boxShadow List<BoxShadow>?
Provide custom shadow to the button
final
buttonColor Color
Change button color by default its Colors.white
final
gradient Gradient?
This is to add gradient in the button The proproty for this field is greater then the background button So if this is provided the background color will be ignored
final
hashCode int
The hash code for this object.
no setterinherited
height double
To provide the specific height of the button
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onPressed VoidCallback?
Handle tap/press action on the button
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
Required Field that will display text in the center
final
textMargin EdgeInsets?
This is to update the text margin around the text
final
textStyle TextStyle?
This is used to change the text for the text
final
tilt double
This is to change the value for the tilt ranging from 20 to 50
final
tiltSide TiltSide?
This variables handles the tile side of the button from left or right Can be TiltSide.left or TiltSide.right
final
width double?
To provide the specific height of the button
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