showToast method

void showToast (
  1. String msg
)

showToast at top of screen msg

Implementation

static void showToast(String msg) {
  showSimpleNotification(
      Align(
          alignment: Alignment.bottomCenter,
          child: Text(msg,
              style: TextStyle(color: Colors.white),
              textAlign: TextAlign.center)),
      background: Colors.grey[800]);
}