buildLabel function

Widget buildLabel(
  1. BuildContext context,
  2. String title,
  3. String msg
)

Implementation

Widget buildLabel(BuildContext context, String title, String msg){
  return Column(
    children: <Widget>[
      customText(title,
          context: context,
          style: const TextStyle(fontSize: 25,fontWeight: FontWeight.bold)
      ),
      AppTheme.heightSpace10,
      Padding(
        padding: const EdgeInsets.symmetric(horizontal: 20),
        child: customText(msg, context: context,
            style: const TextStyle(
                fontSize: 15,
                fontWeight: FontWeight.w500,
                color: Colors.white70),
            textAlign: TextAlign.center),
      ),
      AppTheme.heightSpace10,
    ],
  );
}