button/k_button
library
Functions
-
kbutton(String text, {TextStyle? textStyle, int? height, int? minWidth, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Color? background, ShapeBorder? shape, bool isDisabled = true, Color? disabledTextColor, Color? disabledColor, ShapeBorder? disableShape, bool clearElevation = false, VoidCallback? onClick})
→ Widget
-
MaterialButton
text 文案
textStyle 文案样式
height 高度
minWidth 最小宽度
margin 外边距
padding 内边距
background 背景色
shape 形状
isDisabled 是否可点击
disabledTextColor 不可点击的文字颜色
disabledColor 不可点击的背景颜色
disableShape 不可点击的形状
clearElevation 去掉阴影
onClick 点击事件
-
kbuttonCheck(String text, bool isCheck, {TextStyle? textStyle, TextStyle? textStyleCheck, int? height, int? minWidth, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Color? background, Color? backgroundCheck, Color? borderColor, Color? borderColorCheck, int? borderWidth, int? radius, bool isDisabled = true, Color? disabledTextColor, Color? disabledColor, Color? disableBorderColor, bool clearElevation = false, VoidCallback? onClick})
→ Widget
-
MaterialButton RoundedRectangleBorder形状+是否选中样式
text 文案
isCheck 是否选中
textStyle 未选中文案样式
textStyleCheck 选中文案样式
height 高度
minWidth 最小宽度
margin 外边距
padding 内边距
background 未选中背景色
backgroundCheck 选中背景色
borderColor 未选中边框颜色
borderColorCheck 选中边框颜色
borderWidth 边框宽度
radius 边框圆角
isDisabled 是否可点击
disabledTextColor 不可点击的文字颜色
disabledColor 不可点击的背景颜色
disableShape 不可点击的形状
clearElevation 去掉阴影
onClick 点击事件
-
kbuttonRadius(String text, {TextStyle? textStyle, int? height, int? minWidth, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Color? background, Color? borderColor, int? borderWidth, int? radius, bool isDisabled = true, Color? disabledTextColor, Color? disabledColor, Color? disableBorderColor, bool clearElevation = false, VoidCallback? onClick})
→ Widget
-
MaterialButton RoundedRectangleBorder形状
text 文案
textStyle 文案样式
height 高度
minWidth 最小宽度
margin 外边距
padding 内边距
background 背景色
borderColor 边框颜色
borderWidth 边框宽度
radius 边框圆角
isDisabled 是否可点击
disabledTextColor 不可点击的文字颜色
disabledColor 不可点击的背景颜色
disableShape 不可点击的形状
clearElevation 去掉阴影
onClick 点击事件