SDUIButton class

Descriptor of a button

JSON Attributes

  • caption: Caption of the button
  • padding: Button padding (default = 15).
  • stretched: if true, the button will be stretched (default = true)
  • type: Type of button. The values are:
  • icon: Icon code
  • iconSize: Size of the icon
  • action**: SDUIAction to execute when the button is clicked
  • color Text color
  • iconColor: Icon color
Inheritance

Constructors

SDUIButton({String? caption, String? type, double? padding, ActionCallback? onPressed, bool? stretched, double? iconSize, String? icon, double? fontSize})

Properties

action SDUIAction
getter/setter pairinherited
caption String?
getter/setter pair
children List<SDUIWidget>
getter/setter pairinherited
color String?
getter/setter pair
fontSize double?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
icon String?
getter/setter pair
iconColor String?
getter/setter pair
iconSize double?
getter/setter pair
id String?
getter/setter pairinherited
onPressed ActionCallback?
getter/setter pair
padding double?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stretched bool?
getter/setter pair
type String?
getter/setter pair

Methods

attachPageController(PageController? controller) → void
inherited
attachScreen(SDUIWidget screen) → void
inherited
child() SDUIWidget?
Return the first child
inherited
childrenWidgets(BuildContext context) List<Widget>
Return the list of children Widget
inherited
fromJson(Map<String, dynamic>? json) SDUIWidget
Load the attributes of the widget descriptor from
override
hasChildren() bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toAlignment(String? alignment) Alignment?
inherited
toAxis(String? direction) Axis
inherited
toBoxFit(String? fit) BoxFit?
inherited
toClip(String? clip) Clip?
inherited
toColor(String? hexColor) Color?
inherited
toCrossAxisAlignment(String? value) CrossAxisAlignment
inherited
toIcon(String? code, {double? size, String? color}) Widget?
inherited
toIconData(String? code) IconData?
inherited
toMainAxisAlignment(String? value) MainAxisAlignment
inherited
toMainAxisSize(String? value) MainAxisSize
inherited
toString() String
A string representation of this object.
inherited
toTextAlign(String? alignment) TextAlign?
inherited
toWidget(BuildContext context) Widget
Return the associated Widget
override

Operators

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