StateTag constructor

const StateTag({
  1. Key? key,
  2. required String tagText,
  3. TagState tagState = TagState.waiting,
  4. Color? backgroundColor,
  5. Color? textColor,
})

状态标签是反应状态的形式,根据不同的tagState呈现不同的背景色和文字颜色 默认为等待状态, 黄色

Implementation

const StateTag({
  Key? key,
  required this.tagText,
  this.tagState = TagState.waiting,
  this.backgroundColor,
  this.textColor,
}) : super(key: key);