TextBar constructor
TextBar(})
创建文本条组件
text 需要显示的文本内容
color 背景颜色(默认蓝色)
textColor 文字颜色(默认白色)
fontSize 文字尺寸(默认14)
radius 圆角半径(默认4)
Implementation
TextBar(
this.text, {
this.color = Colors.blue,
this.textColor = Colors.white,
this.fontSize = 14,
this.radius = 4,
});