headerText method

Widget headerText(
  1. dynamic text
)

Implementation

Widget headerText(text) {
  return Column(
      crossAxisAlignment: CrossAxisAlignment.center,
      children: [
        Text(
          text,
          style: TextStyle(fontSize: 20, fontWeight: FontWeight.w500, color: primaryBlue),
        ),
        const SizedBox(height: 8,),
        Divider(
          thickness: 0.5,
          color: const Color(0xFFD7D7D7).withOpacity(1), //// The color to use when painting the line.
          height: 4,
        ),
      ]
  );
}