GTFButton class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- GTFButton
Constructors
- GTFButton({Key? key, VoidCallback? onPressed, String text = "", String? icon, bool isEnable = true, int maxLines = 1, double? iconWidth, double? iconHeight, double iconTextMargin = 4, double borderWidth = 0, double pressedOpacity = 0.6, double radius = 0, double lineHeight = 1.4, double? fontSize = GTFFont.title, FontWeight? fontWeight = GTFFont.medium, TextAlign textAlign = TextAlign.center, GTFButtonIconAlignment iconAlignment = GTFButtonIconAlignment.left, EdgeInsets margin = EdgeInsets.zero, EdgeInsets padding = EdgeInsets.zero, BoxConstraints? constraints, BorderRadius? borderRadius, Color backgroundColor = GTFColor.transparent, Color? disableBackgroundColor, Color? textColor, Color? disableTextColor, Color borderColor = GTFColor.transparent, Color? disableBorderColor})
-
const
- GTFButton.primary({Key? key, VoidCallback? onPressed, String text = "", String? icon, bool isEnable = true, int maxLines = 1, double? iconWidth, double? iconHeight, double iconTextMargin = 4, double borderWidth = 0, double pressedOpacity = 0.6, double radius = 4, double lineHeight = 1.4, double? fontSize = GTFFont.title, FontWeight? fontWeight = GTFFont.medium, TextAlign textAlign = TextAlign.center, GTFButtonIconAlignment iconAlignment = GTFButtonIconAlignment.left, EdgeInsets margin = EdgeInsets.zero, EdgeInsets padding = const EdgeInsets.all(8), BoxConstraints? constraints = const BoxConstraints(minHeight: 44), BorderRadius? borderRadius, Color backgroundColor = GTFColor.yellowPrimary, Color? disableBackgroundColor = GTFColor.grey3, Color? textColor = GTFColor.grey6, Color? disableTextColor = GTFColor.white, Color borderColor = GTFColor.transparent, Color? disableBorderColor})
-
const
- GTFButton.sub({Key? key, VoidCallback? onPressed, String text = "", String? icon, bool isEnable = true, int maxLines = 1, double? iconWidth, double? iconHeight, double iconTextMargin = 4, double borderWidth = 1, double pressedOpacity = 0.6, double radius = 4, double lineHeight = 1.4, double? fontSize = GTFFont.title, FontWeight? fontWeight = GTFFont.medium, TextAlign textAlign = TextAlign.center, GTFButtonIconAlignment iconAlignment = GTFButtonIconAlignment.left, EdgeInsets margin = EdgeInsets.zero, EdgeInsets padding = const EdgeInsets.all(8), BoxConstraints? constraints = const BoxConstraints(minHeight: 44), BorderRadius? borderRadius, Color backgroundColor = GTFColor.white, Color? disableBackgroundColor, Color? textColor = GTFColor.grey6, Color? disableTextColor, Color borderColor = GTFColor.grey2, Color? disableBorderColor})
-
const
Properties
- backgroundColor → Color
-
final
- borderColor → Color
-
final
- borderRadius → BorderRadius?
-
final
- borderWidth → double
-
final
- constraints → BoxConstraints?
-
final
- disableBackgroundColor → Color?
-
final
- disableBorderColor → Color?
-
final
- disableTextColor → Color?
-
final
- fontSize → double?
-
final
- fontWeight → FontWeight?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → String?
-
final
- iconAlignment → GTFButtonIconAlignment
-
final
- iconHeight → double?
-
final
- iconTextMargin → double
-
final
- iconWidth → double?
-
final
- isEnable → bool
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- lineHeight → double
-
final
- margin → EdgeInsets
-
final
- maxLines → int
-
final
- onPressed → VoidCallback?
-
final
- padding → EdgeInsets
-
final
- pressedOpacity → double
-
final
- radius → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String
-
final
- textAlign → TextAlign
-
final
- textColor → Color?
-
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
-
getBackgroundColor(
) → Color? -
getBox(
) → Widget -
getChild(
) → Widget -
getDecoration(
) → BoxDecoration? -
getDisableBackgroundColor(
) → Color -
getIcon(
) → Widget -
getPressedOpacity(
) → double -
getText(
) → Widget -
getTextColor(
) → Color? -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onTap(
) → VoidCallback? -
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, int wrapWidth = 65}) → 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