RichTextWidget constructor
const
RichTextWidget({
- Key? key,
- required String caption,
- required String description,
- bool showColon = true,
- bool isDescNewLine = false,
- TextAlign textAlign = TextAlign.start,
- TextStyle captionStyle = const TextStyle(fontSize: 14, color: Colors.black, fontWeight: FontWeight.normal),
- TextStyle descriptionStyle = const TextStyle(fontSize: 14, color: Colors.black, fontWeight: FontWeight.normal),
Implementation
const RichTextWidget({
Key? key,
required this.caption,
required this.description,
this.showColon = true,
this.isDescNewLine = false,
this.textAlign = TextAlign.start,
this.captionStyle = const TextStyle(fontSize: 14, color: Colors.black, fontWeight: FontWeight.normal),
this.descriptionStyle = const TextStyle(fontSize: 14, color: Colors.black, fontWeight: FontWeight.normal),
}) : super(key: key);