text/k_text
library
Functions
-
ktext(String text, {TextStyle? textStyle, int? height, int? width, AlignmentGeometry? alignment, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Decoration? decoration, VoidCallback? onClick})
→ Widget
-
Text
text 文案
textStyle 文案样式
height 高度
width 宽度
alignment 对其方式
margin 外边距
padding 内边距
decoration 背景装饰
onClick 点击事件
-
ktextCheck(String text, bool isCheck, {TextStyle? textStyle, TextStyle? textStyleCheck, int? height, int? width, AlignmentGeometry? alignment, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Decoration? decoration, Decoration? decorationCheck, VoidCallback? onClick})
→ Widget
-
Text 选中和未选中样式
text 文案
isCheck 是否选中
textStyle 未选中文案样式
textStyleCheck 选中文案样式
height 高度
width 宽度
alignment 对其方式
margin 外边距
padding 内边距
decoration 未选中背景装饰
decorationCheck 选中背景装饰
onClick 点击事件