spanWithBoldTitle method
Implementation
Widget spanWithBoldTitle(
context,
String title,
String text, {
Color? color,
int? maxLines,
double? size,
}) {
return RichText(
maxLines: maxLines,
text: TextSpan(
style: TextStyle(
fontFamily: Theme.of(context).textTheme.bodyMedium!.fontFamily,
color: color ?? Theme.of(context).textTheme.bodyMedium!.color,
fontSize: size ?? DUI.text.regularText,
fontWeight: DUI.text.regularWeight,
),
children: <TextSpan>[
TextSpan(
text: title,
style: TextStyle(
fontWeight: DUI.text.semiBoldWeight,
),
),
TextSpan(
text: text,
)
],
),
);
}