showSnackBar function

dynamic showSnackBar(
  1. dynamic context,
  2. String message
)

Implementation

showSnackBar(context, String message) {
  SnackBar snackBar = SnackBar(
    content: Text(message,style: TextStyle(
      color: ColorConstant.white,
      fontSize: getFontSize(
        18,
      ),
      fontWeight: FontWeight.w400,
    )),
  );

  ScaffoldMessenger.of(context).showSnackBar(snackBar);
}