fastToast function
Implementation
fastToast(BuildContext context, String msg, {duration = 1}) {
// return Toast.show(
// msg,
// context,
// duration: duration,
// gravity: 3,
// backgroundRadius: 10.0,
// backgroundColor: Color.fromRGBO(0, 0, 0, 0.7),
// );
Fluttertoast.showToast(
msg: msg,
toastLength: Toast.LENGTH_SHORT,
gravity: ToastGravity.CENTER,
timeInSecForIosWeb: 1,
backgroundColor: Colors.black.withAlpha(200),
textColor: Colors.white,
fontSize: 16.0
);
}