TextBar constructor

TextBar(
  1. String text, {
  2. Color color = Colors.blue,
  3. Color textColor = Colors.white,
  4. double fontSize = 14,
  5. double radius = 4,
})

创建文本条组件

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,
});