IconTextButton class

The Button with icon & text together 图文按钮

Inheritance

Constructors

IconTextButton({Key key, @required Icon icon, @required Text label, double size, Color color, Color bgColor, BtnType btnType, @required VoidCallback onPress, Color borderColor, EdgeInsetsGeometry padding, bool isResponsive: true})
const

Properties

bgColor Color
The color of Background 背景颜色
final
borderColor Color
final
btnType BtnType
The button style that you will use 你要使用的按钮组件样式
final
color Color
The color of icon & text 颜色
final
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
icon Icon
The icon you want to display icon图标
final
isResponsive bool
If you need a responsive size to fit different screen resolution If true, all size of this widget will be convert into percentage of the screen that under safe-area 是否要使用自适应的尺寸,如果此项为true,则所有的尺寸都会转化为
final
key Key
Controls how one widget replaces another widget in the tree. [...]
final, inherited
label Text
The text you will display under the icon 图标下的文字
final
onPress VoidCallback
The event when you click our button 点击事件
final
padding EdgeInsetsGeometry
The Padding around icon & text 内边距
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
size double
The size of whole button 大小
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree. [...]
inherited
createState() State<StatefulWidget>
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. [...]
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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
Returns 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. [...]
@nonVirtual, inherited