showErrorWidget function

Widget showErrorWidget({
  1. required String errorMessage,
})

Implementation

Widget showErrorWidget({required String errorMessage}){
  return Center(
    child: Container(
      padding: EdgeInsets.symmetric(horizontal: 5.0, vertical: 3.0),
      child: customText(
          text: errorMessage,
          maxLines: 5,
          textColor: CommonColors.red,
          fontSize: 15.0,
          fontWeight: FontWeight.bold,
          textAlign: TextAlign.center,
          textOverFlow: TextOverflow.clip
      ),
    ),
  );
}