toastIconError method

void toastIconError()

Implementation

void toastIconError(){
  MyToast.showCustom(context, Container(
    decoration: BoxDecoration(
      color: Colors.red[600],
      borderRadius: BorderRadius.all(Radius.circular(30))
    ),
    padding: EdgeInsets.symmetric(horizontal: 15, vertical: 12),
    child: Row(
      mainAxisSize: MainAxisSize.min,
      crossAxisAlignment: CrossAxisAlignment.center,
      children: <Widget>[
        Icon(Icons.close, color: Colors.white, size: 20),
        Container(width: 10),
        Text("This is Error Message", style: MyText.body1(context)!.copyWith(color: MyColors.grey_5)),
        Container(width: 8),
      ],
    ),
  ));
}