NiceButtons class
Constructors
-
NiceButtons({required Function onTap, required Widget child, Color startColor = const Color(0xFF2ec8ff), Color endColor = const Color(0xFF529fff), Color borderColor = const Color(0xFF3489e9), Color progressColor = Colors.white, double progressSize = 20, double borderRadius = 20, double borderThickness = 5, double height = 60, double width = 200, GradientOrientation gradientOrientation = GradientOrientation.Vertical, bool stretch = true, bool progress = false, bool disabled = false})
-
Properties
-
borderColor
→ Color
-
The color of the 3D border of the button.
final
-
borderRadius
→ double
-
The border radius for the button, defaults to 20.
final
-
borderThickness
→ double
-
The thickness of the 3D border, defaults to 5.
final
-
br
→ BorderRadius
-
The calculated border radius for the buttons.
final
-
calculatedWidth
→ double
-
The calculated width of the button, sets to parent width when
stretch property is set to true.
final
-
child
→ Widget
-
Child widget that will be wrapped inside the button.
final
-
disabled
→ bool
-
Disables the button, defaults to false.
final
-
endColor
→ Color
-
The gradient end color to right when orientation is horizontal and to
bottom when orientation is vertical.
final
-
gradientOrientation
→ GradientOrientation
-
Orientation of the gradient defaults to Horizontal.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
height
→ double
-
Height of the button, defaults to 60.
final
-
key
→ Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onTap
→ Function
-
Button on press handler, required.
final
-
progress
→ bool
-
Whether the progress indicator is required or not, defaults to false.
final
-
progressColor
→ Color
-
The color of circular progress indicator, defaults to white.
final
-
progressSize
→ double
-
The size of progress indicator circle, defaults to 20.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
startColor
→ Color
-
The gradient start color from left when gradientOrientation is horizontal,
from top when orientation is vertical.
final
-
stretch
→ bool
-
Whether to occupy the full available space in the parent, defaults to true.
final
-
width
→ double
-
Width of the button defaults to 200, it's useless if the stretch property
is set to true.
final