NextButton class

Inheritance
Available extensions

Constructors

NextButton({Key? key, Widget? leading, Widget itemBuilder(BuildContext context, bool isHovered, Color? color)?, bool enabled = true, Widget? trailing, TextStyle? style, Widget? child, void onPressed()?, Color? color, Color? outlineColor, EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 15, vertical: 12), EdgeInsets margin = const EdgeInsets.all(4), NextButtonVariant variant = NextButtonVariant.filled, BorderRadiusGeometry borderRadius = const BorderRadius.all(Radius.circular(6)), Duration? animationDuration, Duration? hoverDuration, double? elevation, double? focusElevation, double? hoverElevation, double? highlightElevation, double? disabledElevation})
const

Properties

animationDuration Duration?
Hover Duration - Animation to reverse from hover to normal state Animation Duration - Duration of animation
final
borderRadius BorderRadiusGeometry
Represents the radius of button
final
child Widget?
Main Child
final
color Color?
Color of button if null takes primary Color
final
disabledElevation double?
final
elevation double?
final
enabled bool
If enabled->false then onPressed wont work
final
focusElevation double?
final
hashCode int
The hash code for this object.
no setterinherited
highlightElevation double?
final
hoverDuration Duration?
Hover Duration - Animation to reverse from hover to normal state Animation Duration - Duration of animation
final
hoverElevation double?
final
itemBuilder Widget Function(BuildContext context, bool isHovered, Color? color)?
Customise your button
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leading Widget?
Leading Widget
final
margin EdgeInsets
Margin around the button
final
onPressed → void Function()?
On Tap of button what should happen
final
outlineColor Color?
Outline Color is the border color
final
padding EdgeInsets
Padding for the button
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style TextStyle?
Text style for the title
final
trailing Widget?
Trailing Widget
final
variant NextButtonVariant
Variant of button whether it should be outlined or filled
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