showToast static method

void showToast(
  1. BuildContext context,
  2. String text
)

Displays a toast notification

Implementation

static void showToast(BuildContext context, String text) {
  try {
    Fluttertoast.showToast(
      msg: text,
      timeInSecForIosWeb: 1,
      backgroundColor: Color(0xAA383737),
      textColor: Colors.white,
    );
  } catch(error) { }
}