buildErrorLineCell function
Widget
buildErrorLineCell(
{ - required String errorText,
- IconData errorIcon = Icons.error,
- Color errorColor = Colors.red,
- double height = 40,
- Color backgroundColor = Colors.white,
})
Implementation
Widget buildErrorLineCell(
{required String errorText,
IconData errorIcon = Icons.error,
Color errorColor = Colors.red,
double height = 40,
Color backgroundColor = Colors.white}) {
return Container(
height: height,
color: backgroundColor,
alignment: Alignment.center,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Icon(errorIcon, color: errorColor),
const SizedBox(width: 5),
Text(errorText, style: TextStyle(color: errorColor))
],
),
);
}