errorDialog function

void errorDialog(
  1. dynamic title,
  2. dynamic body,
  3. dynamic color
)

Implementation

void errorDialog(title, body, color) {
  Get.dialog(Dialog(
    backgroundColor: Colors.transparent,
    child: Container(
      width: 300,
      height: 200,
      child: HordeBox(
        title: title,
        color: color,
        child: Column(
          children: [
            Text(body),
            SizedBox(
              height: 30,
            ),
            MaterialButton(
              onPressed: () {
                Get.close(1);
              },
              child: Text('Close'),
            )
          ],
        ),
      ),
    ),
  ));
}