TextLabel constructor
const
TextLabel({
- Key? key,
- required String title,
- double height = 17,
- double radius = 2,
- Color bgColor = const Color(0xffE6F2FE),
- EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 4, vertical: 0),
- int maxLines = 1,
- TextStyle textStyle = const TextStyle(color: Color(0xff5DACFB), fontSize: 12, height: 1.3),
- Border? border,
- BoxDecoration? decoration,
- 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);