CButton class

Inheritance
Available extensions

Constructors

CButton({Key? key, required String text, VoidCallback? onPressed, bool? disabled, CButtonSize? size, Color? color, CButtonStyle? type, Color? textColor, double? width, double? height, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, int? flex, bool? visible, double? borderRadius, Color? backgroundColor, Style? style, double? gap, dynamic onTap()?, bool? expanded, Decoration? decoration, String? tag})

Properties

alignment → Alignment?
finalinherited
backgroundColor → Color?
finalinherited
border → Border?
finalinherited
borderRadius → double?
finalinherited
children → List<Widget>?
finalinherited
color → Color?
final
commonController → CController
finalinherited
contentHeight → dynamic
no setterinherited
crossAxisAlignment → CrossAxisAlignment?
finalinherited
decoration → Decoration?
finalinherited
disabled → bool?
final
expanded → bool?
finalinherited
flex → int?
finalinherited
gap → double?
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
height → double?
finalinherited
icon → Widget?
finalinherited
iconMargin → double?
finalinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lineColor → Color?
finalinherited
lineWidth → double?
finalinherited
mainAxisAlignment → MainAxisAlignment?
finalinherited
mainAxisSize → MainAxisSize?
finalinherited
margin → EdgeInsetsGeometry?
finalinherited
marginZero → Widget

Available on Widget, provided by the WidgetMarginX extension

no setter
onPressed → VoidCallback?
final
onTap → dynamic Function()?
finalinherited
padding → EdgeInsetsGeometry?
finalinherited
paddingZero → Widget

Available on Widget, provided by the WidgetPaddingX extension

no setter
rearIcon → Widget?
finalinherited
rearIconMargin → double?
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scrollDirection → Axis?
finalinherited
size → CButtonSize?
final
sliverBox → Widget

Available on Widget, provided by the WidgetSliverBoxX extension

no setter
style → Style?
finalinherited
tag → String?
finalinherited
text → String
final
textColor → Color?
final
type → CButtonStyle?
final
visible → bool?
finalinherited
width → double?
finalinherited

Methods

alert({dynamic title, dynamic onPressed, dynamic onCanceled, dynamic text, dynamic confirmText, dynamic cancelText}) → dynamic
inherited
build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
inherited
confirm({dynamic title, dynamic onPressed, dynamic onCanceled, dynamic text, dynamic confirmText, dynamic cancelText}) → dynamic
inherited
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?
inherited
init(BuildContext context) → Widget
override
initChildren(Widget widget, List<Widget> children, MainAxisAlignment? mainAxisAlignment, CrossAxisAlignment? crossAxisAlignment, MainAxisSize? mainAxisSize, Alignment? alignment, BuildContext context) → Widget
inherited
marginAll(double margin) → Widget

Available on Widget, provided by the WidgetMarginX extension

marginOnly({double left = 0.0, double top = 0.0, double right = 0.0, double bottom = 0.0}) → Widget

Available on Widget, provided by the WidgetMarginX extension

marginSymmetric({double horizontal = 0.0, double vertical = 0.0}) → Widget

Available on Widget, provided by the WidgetMarginX extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paddingAll(double padding) → Widget

Available on Widget, provided by the WidgetPaddingX extension

paddingOnly({double left = 0.0, double top = 0.0, double right = 0.0, double bottom = 0.0}) → Widget

Available on Widget, provided by the WidgetPaddingX extension

paddingSymmetric({double horizontal = 0.0, double vertical = 0.0}) → Widget

Available on Widget, provided by the WidgetPaddingX extension

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
unfocus() → dynamic
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited