MadroidText constructor
const
MadroidText({
- Key? key,
- required String text,
- bool visible = true,
- double margin = 0.0,
- double? marginTop,
- double? marginLeft,
- double? marginRight,
- double? marginBottom,
- double? marginVertical,
- double? marginHorizontal,
- Color color = kWhiteColor,
- double? size,
- String? font,
- FontWeight weight = FontWeight.normal,
- TextOverflow? overflow,
- TextAlign align = TextAlign.justify,
- double? letterSpacing,
- double? wordSpacing,
- VoidCallback? onTap,
- VoidCallback? onLongPress,
- VoidCallback? onDoubleTap,
Implementation
const MadroidText({
super.key,
required this.text,
this.visible = true,
this.margin = 0.0,
this.marginTop,
this.marginLeft,
this.marginRight,
this.marginBottom,
this.marginVertical,
this.marginHorizontal,
this.color = kWhiteColor,
this.size,
this.font,
this.weight = FontWeight.normal,
this.overflow,
this.align = TextAlign.justify,
this.letterSpacing,
this.wordSpacing,
this.onTap,
this.onLongPress,
this.onDoubleTap,
});