NiceButton class

Inheritance
Annotations

Constructors

NiceButton({Key key, bool mini = false, double radius = 4.0, double elevation = 1.8, Color textColor = Colors.white, Color iconColor = Colors.white, double width, EdgeInsets padding = const EdgeInsets.all(12.0), @required Function onPressed, @required String text, @required Color background, List<Color> gradientColors = const [], IconData icon, double fontSize = 23.0})
const

Properties

background Color
User can define the background color of the button
final
boxDecoration BoxDecoration
read-only
elevation double
This is the elevation of the button
final
existGradientColors bool
read-only
fontSize double
This is the font size of the text
final
gradientColors List<Color>
List of gradient colors to define the gradients
final
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
icon IconData
This is a builder class for a nice button [...]
final
iconColor Color
specify the color of the icon
final
key Key
Controls how one widget replaces another widget in the tree. [...]
final, inherited
linearGradient LinearGradient
read-only
mini bool
mini tag is used to switch from a full-width button to a small button
final
onPressed Function
Here user can define what to do when the button is clicked or pressed
final
padding EdgeInsets
This is the padding of the button
final
radius double
radius can be used to specify the button border radius
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
text String
This is the button's text
final
textColor Color
This is the color of the button's text
final
textStyle TextStyle
read-only
width double
User can define the width of the button
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget. [...]
override
createContainer(BuildContext context) Widget
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