TextLabel constructor

const TextLabel({
  1. Key? key,
  2. required String title,
  3. double height = 17,
  4. double radius = 2,
  5. Color bgColor = const Color(0xffE6F2FE),
  6. EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 4, vertical: 0),
  7. int maxLines = 1,
  8. TextStyle textStyle = const TextStyle(color: Color(0xff5DACFB), fontSize: 12, height: 1.3),
  9. Border? border,
  10. BoxDecoration? decoration,
  11. dynamic onTap()?,
})

Implementation

const TextLabel(
    {Key? key,
    required this.title,
    this.height = 17,
    this.radius = 2,
    this.bgColor = const Color(0xffE6F2FE),
    this.padding = const EdgeInsets.symmetric(horizontal: 4, vertical: 0),
    this.maxLines = 1,
    this.textStyle = const TextStyle(color: Color(0xff5DACFB), fontSize: 12, height: 1.3),
    this.border,
    this.decoration,
    this.onTap})
    : super(key: key);