TextView constructor
const
TextView({
- required String title,
- TextStyle checkedTextStyle = const TextStyle(color: Colors.white, fontSize: 20),
- TextStyle unCheckTextStyle = const TextStyle(color: Colors.black38, fontSize: 20),
- Color highlightColor = Colors.transparent,
- Color hoverColor = Colors.transparent,
- double drawPadding = 5.0,
- PositionEnum drawablePosition = PositionEnum.drawableRight,
- Widget? drawableWidget,
- Widget? drawablePressWidget,
- bool enableClick = true,
- bool isChecked = true,
- dynamic callBack(
- bool checked
- StrutStyle? strutStyle,
- TextAlign? textAlign,
- TextDirection? textDirection,
- Locale? locale,
- bool? softWrap,
- TextOverflow? overflow,
- TextScaler? textScaler,
- int? maxLines,
- String? semanticsLabel,
- CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
- MainAxisSize mainAxisSize = MainAxisSize.min,
- Key? key,
Implementation
const TextView({
required this.title,
this.checkedTextStyle = const TextStyle(color: Colors.white, fontSize: 20),
this.unCheckTextStyle =
const TextStyle(color: Colors.black38, fontSize: 20),
this.highlightColor = Colors.transparent,
this.hoverColor = Colors.transparent,
this.drawPadding = 5.0,
this.drawablePosition = PositionEnum.drawableRight,
this.drawableWidget,
this.drawablePressWidget,
this.enableClick = true,
this.isChecked = true,
this.callBack,
this.strutStyle,
this.textAlign,
this.textDirection,
this.locale,
this.softWrap,
this.overflow,
this.textScaler,
this.maxLines,
this.semanticsLabel,
this.crossAxisAlignment = CrossAxisAlignment.center,
this.mainAxisAlignment = MainAxisAlignment.start,
this.mainAxisSize = MainAxisSize.min,
Key? key,
}) : super(key: key);