buildHeaderBold function

Widget buildHeaderBold(
  1. BuildContext context,
  2. String name, {
  3. int? maxLines,
  4. bool? softWrap,
  5. Color? textColor,
})

Implementation

Widget buildHeaderBold(BuildContext context, String name,
    {int? maxLines, bool? softWrap, Color? textColor}) {
  return Container(
    constraints: const BoxConstraints(
      minWidth: 250.0,
      maxWidth: 250.0,
    ),
    child: AppText(
        alignment: Alignment.centerLeft,
        name,
        maxLines: maxLines,
        softWrap: softWrap ?? false,
        style: TextStyles.normalBold(context, textColor: textColor)),
  );
}