StoryText constructor
StoryText(
- StoryContent content, {
- Key? key,
Implementation
StoryText(
StoryContent content, {
Key? key,
}) : super(
content.getTitle()!,
key: key,
textAlign: content.typography!.convertStringToAlign(),
// style: GoogleFonts.getFont(
// content.typography!.font!,
// textStyle: TextStyle(
// fontFamily: content.typography?.font?.isNotEmpty == true
// ? content.typography?.font
// : 'Roboto',
// fontSize: content.typography?.fontSize ?? 15,
// fontStyle: content.typography?.convertStringToStyle() ??
// FontStyle.normal,
// ),
// fontWeight: content.typography?.convertStringToWeight() ??
// FontWeight.normal,
// decoration: content.typography?.convertStringToDecoration() ??
// TextDecoration.none,
// color: Colors.white,
// ),
);