showSnackbarInfo function

void showSnackbarInfo(
  1. BuildContext? context, {
  2. required String content,
})

Implementation

void showSnackbarInfo(BuildContext? context, {required String content}) {
  try {
    if (context != null) {
      var snackBar = SnackBar(content: Text(content));
      ScaffoldMessenger.of(context).showSnackBar(snackBar);
    }
  } catch (e) {
    showLogE("Lỗi không hiển thị snackbar", className: "showSnackbarInfo");
  }
}