Skip to main content

Button

API

Properties

PropertyTypeDefaultDescription
disabledboolfalsethe state of disabled
widthdoublebutton width.
heightdoublebutton height.
shadowbooltruewhether to enable box shadow.
paddingEdgeInsetsGeometry8button padding.
radiusdouble20border radius.
textStringbutton label.
iconIconDataicon data.
iconSizedouble16icon size.
textSizedouble12text size.
typeCxButtonTypesolidbutton type. fill, solid, text are the states of the button.
colorColorbluebutton color.
textColorColorwhitethe label color.
iconColorColorwhitethe icon color.

Methods

PropertyTypeDefaultDescription
onTapvoid Functionclick event