CupertinoTextButton class

Inheritance

Constructors

CupertinoTextButton({Key? key, required String? text, TextStyle? style, TextAlign? textAlign, TextDirection? textDirection, TextOverflow? textOverflow, bool? softWrap = true, VoidCallback? onTap, VoidCallback? onLongPress, Color? color, Color? pressedColor, Duration? forwardDuration, Duration? backwardDuration, Curve? curve, EdgeInsets padding = EdgeInsets.zero})
const
CupertinoTextButton.icon({Key? key, required IconData icon, double? size, TextDirection? textDirection, VoidCallback? onTap, VoidCallback? onLongPress, Color? color, Color? pressedColor, Duration? forwardDuration, Duration? backwardDuration, Curve? curve, EdgeInsets padding = EdgeInsets.zero})
const

Properties

backwardDuration Duration?
Duration of animation when cancelling a tap.
final
color Color?
Foreground color of the button in normal state, e.g. not pressed.
final
curve Curve?
Curve that is used for the animation.
final
forwardDuration Duration?
Duration of animation when taping / long pressing the button.
final
hashCode int
The hash code for this object.
no setterinherited
iconData IconData?
The icon to display.
final
iconSize double?
The size of the icon in logical pixels.
final
iconTextDirection TextDirection?
The text direction to use for rendering the icon.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onLongPress VoidCallback?
final
onTap VoidCallback?
final
padding EdgeInsets
Padding that will be applied to the text/icon.
final
pressedColor Color?
Foreground color of the button in pressed state.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
softWrap bool?
Whether the text should break at soft line breaks.
final
text String?
The text to display.
final
textAlign TextAlign?
How the text should be aligned horizontally.
final
textDirection TextDirection?
The directionality of the text.
final
textOverflow TextOverflow?
How visual overflow should be handled.
final
textStyle TextStyle?
Style of the displayed text.
final
type → CupertinoTextButtonType
Is automatically determined by using either the default constructor, or the CupertinoTextButton.icon one.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _CupertinoTextButtonState
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